Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") translateModel(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 198.4 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2066/0.2066, allocations: 9.123 MB / 299.5 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 67.91 kB / 362 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1272, allocations: 51.43 MB / 413.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel): time 0.01088/0.1381, allocations: 8.586 MB / 422 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2129/0.3511, allocations: 2.71 MB / 424.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.3524, allocations: 35.09 kB / 424.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008178/0.3532, allocations: 360.7 kB / 425.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002959/0.3562, allocations: 1.413 MB / 426.5 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005843/0.3568, allocations: 159.1 kB / 426.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003282/0.3601, allocations: 2.52 MB / 429.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001246/0.3614, allocations: 0.8758 MB / 430 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00112/0.3625, allocations: 0.8905 MB / 430.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.3638, allocations: 1.32 MB / 432.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003361/0.3641, allocations: 227.7 kB / 432.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.3656, allocations: 0.8835 MB / 433.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000875/0.3665, allocations: 1.217 MB / 434.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.3676, allocations: 1.558 MB / 436.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003841/0.3714, allocations: 4.816 MB / 440.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3715, allocations: 0 / 440.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3715, allocations: 0 / 440.9 MB, free: 31.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.745e-05/0.3715, allocations: 0 / 440.9 MB, free: 31.54 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1162 * Number of variables: 1162 Notification: Performance of Generate backend data structure: time 0.01586/0.3874, allocations: 5.02 MB / 446 MB, free: 29.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.3875, allocations: 13.69 kB / 446 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006092/0.3936, allocations: 1.769 MB / 447.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.3964, allocations: 1.412 MB / 449.2 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-05/0.3965, allocations: 152.5 kB / 449.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004292/0.3969, allocations: 195.8 kB / 449.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.4121, allocations: 8.453 MB / 458 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001557/0.4123, allocations: 21.94 kB / 458 MB, free: 24.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008833/0.4132, allocations: 96.5 kB / 458.1 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004111/0.4174, allocations: 1.879 MB / 459.9 MB, free: 24.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02109/0.4385, allocations: 8.128 MB / 468.1 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04646/0.485, allocations: 25.93 MB / 494 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009885/0.4949, allocations: 2.863 MB / 496.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/0.4969, allocations: 1.068 MB / 497.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007557/0.5045, allocations: 5.027 MB / 0.4912 GB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.5046, allocations: 47.88 kB / 0.4912 GB, free: 7.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 4.839e-06/0.5046, allocations: 0 / 0.4912 GB, free: 7.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=173): time 0.01772/0.5223, allocations: 7.938 MB / 0.499 GB, free: 15.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.5224, allocations: 72.66 kB / 0.499 GB, free: 15.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004887/0.5273, allocations: 2.593 MB / 0.5016 GB, free: 13.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001464/0.5275, allocations: 49.7 kB / 0.5016 GB, free: 13.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.5291, allocations: 2.055 MB / 0.5036 GB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006538/0.5297, allocations: 0.6378 MB / 0.5042 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/0.5312, allocations: 0.8008 MB / 0.505 GB, free: 9.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.5313, allocations: 309.1 kB / 0.5053 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/0.5337, allocations: 1.374 MB / 0.5067 GB, free: 7.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/0.5375, allocations: 3.532 MB / 0.5101 GB, free: 3.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006295/0.5438, allocations: 5.301 MB / 0.5153 GB, free: 13.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.444e-05/0.5439, allocations: 28 kB / 0.5153 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.009654/0.5536, allocations: 5.102 MB / 0.5203 GB, free: 7.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.873e-05/0.5537, allocations: 36 kB / 0.5203 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/0.5538, allocations: 80.12 kB / 0.5204 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008087/0.5547, allocations: 313.5 kB / 0.5207 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002922/0.5576, allocations: 0.9007 MB / 0.5216 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.5615, allocations: 3.291 MB / 0.5248 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/0.5644, allocations: 187.9 kB / 0.525 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005848/0.565, allocations: 244 kB / 0.5252 GB, free: 2.727 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 9 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (490): * Single equations (assignments): 484 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002774/0.5678, allocations: 1.576 MB / 0.5268 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/0.5683, allocations: 229 kB / 0.527 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/0.5725, allocations: 2.338 MB / 0.5293 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/0.5726, allocations: 34.8 kB / 0.5293 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5727, allocations: 0 / 0.5293 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.717e-05/0.5727, allocations: 7.969 kB / 0.5293 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0123/0.585, allocations: 6.25 MB / 0.5354 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.585, allocations: 4 kB / 0.5354 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.5861, allocations: 251.6 kB / 0.5356 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005976/0.5867, allocations: 209.2 kB / 0.5358 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.5868, allocations: 35.98 kB / 0.5359 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.59, allocations: 2.87 MB / 0.5387 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.5901, allocations: 4 kB / 0.5387 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005199/0.5953, allocations: 3.593 MB / 0.5422 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006282/0.5959, allocations: 298.3 kB / 0.5425 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004454/0.5964, allocations: 28 kB / 0.5425 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.5974, allocations: 71.91 kB / 0.5426 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.5976, allocations: 103.2 kB / 0.5427 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.395e-05/0.5977, allocations: 47.98 kB / 0.5427 GB, free: 472 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002921/0.6006, allocations: 1.679 MB / 0.5444 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6007, allocations: 4 kB / 0.5444 GB, free: 14.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003384/0.604, allocations: 0.7032 MB / 0.545 GB, free: 14.06 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (prismatic.s,prismatic.v,revolute.phi,revolute.w,engineTorque.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 132 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004583/0.6045, allocations: 176.3 kB / 0.5452 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009552/0.6141, allocations: 5.246 MB / 0.5503 GB, free: 8.621 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.6141, allocations: 384 / 0.5503 GB, free: 8.621 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.616, allocations: 1.244 MB / 0.5516 GB, free: 7.344 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.6186, allocations: 384.9 kB / 0.5519 GB, free: 6.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/0.6319, allocations: 6.853 MB / 0.5586 GB, free: 72 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003785/0.6357, allocations: 2.594 MB / 0.5611 GB, free: 13.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003344/0.639, allocations: 1.216 MB / 0.5623 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007118/0.6398, allocations: 187.3 kB / 0.5625 GB, free: 12.04 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6398, allocations: 0 / 0.5625 GB, free: 12.04 MB / 446.1 MB Notification: Performance of Templates: time 0.2187/0.8585, allocations: 27.1 MB / 0.589 GB, free: 119.6 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestDryFrictionWheel.pipe 2>&1)