Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") translateModel(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 105.5 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 187 kB / 17.34 MB, free: 5.719 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04306/0.04306, allocations: 9.117 MB / 300.3 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.91 kB / 415.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09679, allocations: 51.43 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01057/0.1074, allocations: 10.09 MB / 476.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005794/0.1132, allocations: 2.897 MB / 479.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.1148, allocations: 43.88 kB / 479.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.116, allocations: 421.1 kB / 480.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.1201, allocations: 1.603 MB / 481.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006909/0.1208, allocations: 183.7 kB / 482 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004046/0.1249, allocations: 2.968 MB / 484.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.1266, allocations: 1.058 MB / 486 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001993/0.1286, allocations: 1.085 MB / 487.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002518/0.1312, allocations: 1.58 MB / 488.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009767/0.1322, allocations: 264 kB / 488.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.1343, allocations: 0.866 MB / 489.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001847/0.1361, allocations: 1.488 MB / 491.3 MB, free: 9.039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002811/0.139, allocations: 1.86 MB / 493.1 MB, free: 7.168 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006757/0.1457, allocations: 5.772 MB / 498.9 MB, free: 1.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1458, allocations: 0 / 498.9 MB, free: 1.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1458, allocations: 0 / 498.9 MB, free: 1.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001535/0.1459, allocations: 0 / 498.9 MB, free: 1.375 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02646/0.1724, allocations: 6.95 MB / 0.494 GB, free: 10.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.1725, allocations: 12.03 kB / 0.494 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007297/0.1798, allocations: 1.833 MB / 0.4958 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003812/0.1836, allocations: 1.705 MB / 0.4975 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.1838, allocations: 184.9 kB / 0.4976 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008393/0.1847, allocations: 251.9 kB / 0.4979 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2275/0.4121, allocations: 10.4 MB / 0.508 GB, free: 38.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.4123, allocations: 40.5 kB / 0.5081 GB, free: 38.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004583/0.4128, allocations: 114.4 kB / 0.5082 GB, free: 38.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004193/0.417, allocations: 2.154 MB / 0.5103 GB, free: 38.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02429/0.4413, allocations: 10.36 MB / 0.5204 GB, free: 34.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04225/0.4836, allocations: 33.41 MB / 0.553 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01595/0.4996, allocations: 4.325 MB / 0.5573 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002308/0.502, allocations: 1.683 MB / 0.5589 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/0.5125, allocations: 8.6 MB / 0.5673 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/0.5126, allocations: 56.56 kB / 0.5673 GB, free: 6.148 MB / 398.1 MB Notification: Performance of pre-optimization done (n=237): time 4.919e-06/0.5127, allocations: 0 / 0.5673 GB, free: 6.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=277): time 0.02721/0.5399, allocations: 12.76 MB / 0.5798 GB, free: 9.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004148/0.5441, allocations: 3.523 MB / 0.5832 GB, free: 5.543 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.5484, allocations: 3.051 MB / 0.5862 GB, free: 2.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003895/0.5489, allocations: 65.7 kB / 0.5863 GB, free: 2.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.5504, allocations: 2.401 MB / 0.5886 GB, free: 15.97 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/0.5514, allocations: 0.9981 MB / 0.5896 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/0.5529, allocations: 1.068 MB / 0.5907 GB, free: 13.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.553, allocations: 301.1 kB / 0.5909 GB, free: 13.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/0.5559, allocations: 1.908 MB / 0.5928 GB, free: 11.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004686/0.5606, allocations: 4.668 MB / 0.5974 GB, free: 5.668 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008454/0.5691, allocations: 7.175 MB / 0.6044 GB, free: 13.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.2e-05/0.5692, allocations: 28 kB / 0.6044 GB, free: 13.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01337/0.5826, allocations: 7.038 MB / 0.6113 GB, free: 6.086 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/0.5827, allocations: 55.34 kB / 0.6113 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.5828, allocations: 92 kB / 0.6114 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.5841, allocations: 0.5442 MB / 0.6119 GB, free: 5.395 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/0.5883, allocations: 1.236 MB / 0.6131 GB, free: 4.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008807/0.5971, allocations: 7.345 MB / 0.6203 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/0.6011, allocations: 279.9 kB / 0.6206 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000908/0.602, allocations: 312 kB / 0.6209 GB, free: 11.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 432 * Number of states: 0 () * Number of discrete variables: 15 (trail.color[3],trail.color[2],trail.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],chassis.color[3],chassis.color[2],chassis.color[1],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],bodyFront.sphereColor[3],bodyFront.sphereColor[2],bodyFront.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 655 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003192/0.6052, allocations: 1.858 MB / 0.6227 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005214/0.6058, allocations: 296.2 kB / 0.623 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006289/0.6121, allocations: 3.834 MB / 0.6267 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/0.6122, allocations: 44.16 kB / 0.6268 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.6123, allocations: 15.83 kB / 0.6268 GB, free: 5.816 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/0.6123, allocations: 11.95 kB / 0.6268 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0174/0.6297, allocations: 10.85 MB / 0.6374 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.6298, allocations: 8 kB / 0.6374 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/0.6313, allocations: 391.5 kB / 0.6378 GB, free: 10.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.6326, allocations: 0.5519 MB / 0.6383 GB, free: 9.773 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/0.6328, allocations: 63.92 kB / 0.6384 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009473/0.6423, allocations: 8.089 MB / 0.6463 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003493/0.6458, allocations: 3.28 MB / 0.6495 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008671/0.6546, allocations: 5.845 MB / 0.6552 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/0.6561, allocations: 0.6183 MB / 0.6558 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/0.6566, allocations: 59.86 kB / 0.6558 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.6579, allocations: 126 kB / 0.656 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003653/0.6583, allocations: 181.6 kB / 0.6561 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/0.6585, allocations: 75.98 kB / 0.6562 GB, free: 6.836 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002915/0.6614, allocations: 1.944 MB / 0.6581 GB, free: 4.887 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6614, allocations: 0 / 0.6581 GB, free: 4.887 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004338/0.6658, allocations: 0.9858 MB / 0.6591 GB, free: 3.906 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,idealWheelFront.phi_roll,revolute.phi,revolute.w,engineTorque.phi) * 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 (208): * Single equations (assignments): 202 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,26,55.6%), (3,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005307/0.6663, allocations: 193.5 kB / 0.6593 GB, free: 3.707 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008143/0.6745, allocations: 5.079 MB / 0.6642 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.6745, allocations: 5.688 kB / 0.6642 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003285/0.6778, allocations: 2.136 MB / 0.6663 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/0.6803, allocations: 484.2 kB / 0.6668 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/0.6956, allocations: 9.29 MB / 0.6758 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003166/0.6988, allocations: 3.016 MB / 0.6788 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.6999, allocations: 279.4 kB / 0.6791 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.6999, allocations: 4 kB / 0.6791 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of Templates: time 0.3197/1.02, allocations: 88.8 MB / 0.7658 GB, free: 141.5 MB / 0.5294 GB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine.pipe 2>&1)