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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001781/0.00178, allocations: 183 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009379/0.0009379, allocations: 109.7 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04049/0.04049, allocations: 8.942 MB / 349 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009267/0.0009268, allocations: 56.05 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07287/0.07381, allocations: 51.4 MB / 462.5 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.1927/0.2666, allocations: 35.97 MB / 498.5 MB, free: 9.867 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01659/0.2832, allocations: 7.716 MB / 0.4943 GB, free: 5.035 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01018/0.2934, allocations: 132.5 kB / 0.4945 GB, free: 5.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.295, allocations: 347.9 kB / 0.4948 GB, free: 4.887 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005277/0.3003, allocations: 1.475 MB / 0.4962 GB, free: 4.207 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006314/0.301, allocations: 137.2 kB / 0.4964 GB, free: 4.129 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00639/0.3074, allocations: 4.043 MB / 0.5003 GB, free: 2.547 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.3096, allocations: 0.933 MB / 0.5012 GB, free: 1.945 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002422/0.312, allocations: 0.8866 MB / 0.5021 GB, free: 1.461 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002444/0.3145, allocations: 1.519 MB / 0.5036 GB, free: 0.5859 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006083/0.3151, allocations: 153.8 kB / 0.5037 GB, free: 0.5859 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.3171, allocations: 0.7987 MB / 0.5045 GB, free: 216 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.3185, allocations: 1.333 MB / 0.5058 GB, free: 15.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.3202, allocations: 1.709 MB / 0.5075 GB, free: 14.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.326, allocations: 5.207 MB / 0.5125 GB, free: 9.941 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3261, allocations: 0 / 0.5125 GB, free: 9.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.3261, allocations: 0 / 0.5125 GB, free: 9.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001427/0.3262, allocations: 0 / 0.5125 GB, free: 9.941 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1360 * Number of variables: 1360 Notification: Performance of Generate backend data structure: time 0.02397/0.3502, allocations: 6.821 MB / 0.5192 GB, free: 3.051 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3503, allocations: 8.594 kB / 0.5192 GB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006332/0.3566, allocations: 1.821 MB / 0.521 GB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003383/0.36, allocations: 1.639 MB / 0.5226 GB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.3602, allocations: 172.6 kB / 0.5228 GB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006035/0.3608, allocations: 236.1 kB / 0.523 GB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01909/0.3799, allocations: 10.25 MB / 0.533 GB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-05/0.38, allocations: 31.72 kB / 0.533 GB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003937/0.3804, allocations: 111.8 kB / 0.5331 GB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003254/0.3837, allocations: 2.146 MB / 0.5352 GB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02141/0.4051, allocations: 10.17 MB / 0.5452 GB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05201/0.4572, allocations: 32.89 MB / 0.5773 GB, free: 6.332 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01711/0.4743, allocations: 4.17 MB / 0.5813 GB, free: 2.047 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003064/0.4774, allocations: 1.557 MB / 0.5829 GB, free: 500 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/0.4899, allocations: 8.441 MB / 0.5911 GB, free: 7.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.49, allocations: 56.56 kB / 0.5912 GB, free: 7.008 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 6.793e-06/0.49, allocations: 0 / 0.5912 GB, free: 7.008 MB / 410.7 MB Notification: Performance of matching and sorting (n=257): time 0.02661/0.5166, allocations: 12.19 MB / 0.6031 GB, free: 10.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004105/0.5208, allocations: 3.331 MB / 0.6063 GB, free: 7.176 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005581/0.5264, allocations: 2.99 MB / 0.6092 GB, free: 4.172 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004676/0.5269, allocations: 61.7 kB / 0.6093 GB, free: 4.105 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001769/0.5287, allocations: 2.373 MB / 0.6116 GB, free: 1.699 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.5298, allocations: 0.9404 MB / 0.6125 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002499/0.5323, allocations: 1.04 MB / 0.6136 GB, free: 15.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5325, allocations: 301.1 kB / 0.6138 GB, free: 15.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003301/0.5358, allocations: 1.822 MB / 0.6156 GB, free: 13.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004857/0.5407, allocations: 4.522 MB / 0.62 GB, free: 7.723 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008214/0.5489, allocations: 6.916 MB / 0.6268 GB, free: 15.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.374e-05/0.549, allocations: 24 kB / 0.6268 GB, free: 15.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01162/0.5606, allocations: 6.787 MB / 0.6334 GB, free: 8.672 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-05/0.5607, allocations: 48.25 kB / 0.6335 GB, free: 8.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.5609, allocations: 96 kB / 0.6336 GB, free: 8.531 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5621, allocations: 0.5184 MB / 0.6341 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00371/0.5659, allocations: 1.181 MB / 0.6352 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008007/0.5739, allocations: 6.385 MB / 0.6415 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2235/0.7975, allocations: 255.8 kB / 0.6417 GB, free: 149.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/0.7986, allocations: 307.7 kB / 0.642 GB, free: 149.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * 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],bodyRear.sphereColor[3],bodyRear.sphereColor[2],bodyRear.sphereColor[1],chassis.color[3],chassis.color[2],chassis.color[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 (638): * Single equations (assignments): 632 * 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,24,55.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003448/0.8021, allocations: 1.828 MB / 0.6438 GB, free: 149 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007068/0.8028, allocations: 288 kB / 0.6441 GB, free: 149 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006213/0.809, allocations: 3.582 MB / 0.6476 GB, free: 148 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/0.8092, allocations: 43.72 kB / 0.6476 GB, free: 148 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.8092, allocations: 4.031 kB / 0.6476 GB, free: 148 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.8092, allocations: 16 kB / 0.6476 GB, free: 148 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/0.8284, allocations: 10.43 MB / 0.6578 GB, free: 144 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.8285, allocations: 5.031 kB / 0.6578 GB, free: 144 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.8299, allocations: 351.6 kB / 0.6582 GB, free: 143.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.8313, allocations: 0.5453 MB / 0.6587 GB, free: 143.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001754/0.8315, allocations: 46.81 kB / 0.6587 GB, free: 143.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008182/0.8397, allocations: 6.951 MB / 0.6655 GB, free: 139.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00292/0.8427, allocations: 3.102 MB / 0.6686 GB, free: 137.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03743/0.8801, allocations: 28.28 MB / 0.6962 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/0.8807, allocations: 345.5 kB / 0.6965 GB, free: 116.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/0.8811, allocations: 47.98 kB / 0.6966 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.8822, allocations: 109.9 kB / 0.6967 GB, free: 115.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/0.8826, allocations: 182.3 kB / 0.6968 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.8827, allocations: 79.28 kB / 0.6969 GB, free: 115.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002277/0.885, allocations: 1.903 MB / 0.6988 GB, free: 113.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.885, allocations: 0 / 0.6988 GB, free: 113.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004647/0.8897, allocations: 1.233 MB / 0.7 GB, free: 112.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 ($STATESET1.x,idealWheelFront.phi_roll,bodyRear.r[1],bodyRear.r[2],bodyRear.phi,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 (190): * Single equations (assignments): 184 * 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,24,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.0005269/0.8902, allocations: 189.6 kB / 0.7002 GB, free: 112.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.8969, allocations: 4.799 MB / 0.7048 GB, free: 107.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/0.8969, allocations: 0 / 0.7048 GB, free: 107.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.8996, allocations: 2 MB / 0.7068 GB, free: 105.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/0.9021, allocations: 438.5 kB / 0.7072 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/0.9179, allocations: 12.65 MB / 0.7196 GB, free: 92.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002993/0.9209, allocations: 3.047 MB / 0.7225 GB, free: 89.29 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003457/0.9244, allocations: 1.558 MB / 0.7241 GB, free: 87.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006151/0.925, allocations: 243.4 kB / 0.7243 GB, free: 87.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.183e-06/0.9251, allocations: 0 / 0.7243 GB, free: 87.49 MB / 458.7 MB Notification: Performance of Templates: time 0.06107/0.9861, allocations: 43.15 MB / 0.7664 GB, free: 44.56 MB / 458.7 MB 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)