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.001647/0.001647, allocations: 108.5 kB / 16.41 MB, free: 6.492 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.001631/0.001631, allocations: 183 kB / 17.34 MB, free: 5.762 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04649/0.04649, allocations: 9.125 MB / 300.3 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 59.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08023/0.08145, allocations: 51.44 MB / 466.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01089/0.09239, allocations: 10.09 MB / 476.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005985/0.09842, allocations: 2.889 MB / 479.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.09982, allocations: 39.94 kB / 479.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.1011, allocations: 433 kB / 480.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004152/0.1053, allocations: 1.595 MB / 481.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.1061, allocations: 187.7 kB / 482 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004008/0.1101, allocations: 2.977 MB / 484.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.1119, allocations: 1.054 MB / 486 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002037/0.1139, allocations: 1.082 MB / 487.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.1165, allocations: 1.58 MB / 488.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001062/0.1176, allocations: 268 kB / 488.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.1199, allocations: 0.8738 MB / 489.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00215/0.1221, allocations: 1.476 MB / 491.3 MB, free: 9.023 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002837/0.1249, allocations: 1.856 MB / 493.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006899/0.1318, allocations: 5.772 MB / 498.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1319, allocations: 0 / 498.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1319, allocations: 0 / 498.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001884/0.1321, allocations: 4 kB / 498.9 MB, free: 1.359 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.02651/0.1586, allocations: 6.954 MB / 0.494 GB, free: 10.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1587, allocations: 8.031 kB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007401/0.1661, allocations: 1.836 MB / 0.4958 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.1701, allocations: 1.709 MB / 0.4975 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.1704, allocations: 184.9 kB / 0.4976 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.1716, allocations: 247.9 kB / 0.4979 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2272/0.3989, allocations: 10.4 MB / 0.508 GB, free: 38.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00014/0.3991, allocations: 37.08 kB / 0.5081 GB, free: 38.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005124/0.3996, allocations: 117.6 kB / 0.5082 GB, free: 38.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003711/0.4033, allocations: 2.144 MB / 0.5103 GB, free: 38.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02442/0.4277, allocations: 10.37 MB / 0.5204 GB, free: 34.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04238/0.4702, allocations: 33.4 MB / 0.553 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/0.4862, allocations: 4.323 MB / 0.5572 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002678/0.4889, allocations: 1.695 MB / 0.5589 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/0.5009, allocations: 8.603 MB / 0.5673 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.5011, allocations: 52.56 kB / 0.5674 GB, free: 6.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=237): time 6.953e-06/0.5011, allocations: 0 / 0.5674 GB, free: 6.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=277): time 0.02902/0.5301, allocations: 12.76 MB / 0.5798 GB, free: 9.211 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004416/0.5346, allocations: 3.52 MB / 0.5832 GB, free: 5.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004715/0.5393, allocations: 3.051 MB / 0.5862 GB, free: 2.461 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004593/0.5398, allocations: 65.7 kB / 0.5863 GB, free: 2.391 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001924/0.5418, allocations: 2.404 MB / 0.5886 GB, free: 15.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/0.5431, allocations: 0.9903 MB / 0.5896 GB, free: 14.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001728/0.5449, allocations: 1.081 MB / 0.5907 GB, free: 13.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.545, allocations: 301.1 kB / 0.5909 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003472/0.5485, allocations: 1.912 MB / 0.5928 GB, free: 11.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005915/0.5544, allocations: 4.665 MB / 0.5974 GB, free: 5.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009607/0.5641, allocations: 7.159 MB / 0.6044 GB, free: 13.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.823e-05/0.5642, allocations: 28 kB / 0.6044 GB, free: 13.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01472/0.5789, allocations: 7.047 MB / 0.6113 GB, free: 6.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.5791, allocations: 44 kB / 0.6113 GB, free: 6.027 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001955/0.5793, allocations: 96.06 kB / 0.6114 GB, free: 5.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.5809, allocations: 0.5481 MB / 0.6119 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004596/0.5855, allocations: 1.232 MB / 0.6131 GB, free: 4.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009799/0.5954, allocations: 7.354 MB / 0.6203 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004275/0.5997, allocations: 271.8 kB / 0.6206 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/0.6009, allocations: 315.9 kB / 0.6209 GB, free: 11.92 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.004291/0.6052, allocations: 1.854 MB / 0.6227 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008173/0.606, allocations: 292.2 kB / 0.623 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007953/0.614, allocations: 3.846 MB / 0.6267 GB, free: 5.852 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001369/0.6142, allocations: 35.98 kB / 0.6268 GB, free: 5.816 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.134e-05/0.6142, allocations: 8 kB / 0.6268 GB, free: 5.809 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.302e-05/0.6143, allocations: 15.95 kB / 0.6268 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0228/0.6371, allocations: 10.85 MB / 0.6374 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/0.6372, allocations: 8.156 kB / 0.6374 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/0.6389, allocations: 391.4 kB / 0.6378 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001442/0.6404, allocations: 0.5601 MB / 0.6383 GB, free: 9.754 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003515/0.6407, allocations: 48 kB / 0.6384 GB, free: 9.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.6515, allocations: 8.101 MB / 0.6463 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003945/0.6555, allocations: 3.276 MB / 0.6495 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/0.666, allocations: 5.849 MB / 0.6552 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/0.6681, allocations: 0.6222 MB / 0.6558 GB, free: 7.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009181/0.6691, allocations: 51.94 kB / 0.6558 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.6709, allocations: 127.9 kB / 0.656 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005063/0.6714, allocations: 181.6 kB / 0.6561 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/0.6716, allocations: 75.98 kB / 0.6562 GB, free: 6.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003822/0.6755, allocations: 1.952 MB / 0.6581 GB, free: 4.863 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.6755, allocations: 0 / 0.6581 GB, free: 4.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005192/0.6807, allocations: 0.9779 MB / 0.6591 GB, free: 3.891 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.0007053/0.6814, allocations: 197.2 kB / 0.6593 GB, free: 3.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009589/0.691, allocations: 5.085 MB / 0.6642 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/0.6911, allocations: 0 / 0.6642 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00405/0.6951, allocations: 2.133 MB / 0.6663 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/0.6985, allocations: 488.8 kB / 0.6668 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/0.7182, allocations: 9.293 MB / 0.6758 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00474/0.7229, allocations: 3.006 MB / 0.6788 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/0.7242, allocations: 291.3 kB / 0.6791 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/0.7242, allocations: 0 / 0.6791 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of Templates: time 0.3238/1.048, allocations: 88.8 MB / 0.7658 GB, free: 141.4 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)