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-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.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.001546/0.001546, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001673/0.001674, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1495/0.1495, allocations: 9.117 MB / 299.1 MB, free: 1.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 56.09 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1384, allocations: 51.44 MB / 412.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.2491/0.3875, allocations: 36.29 MB / 449 MB, free: 22.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01798/0.4055, allocations: 7.771 MB / 456.8 MB, free: 17.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01055/0.4161, allocations: 129.1 kB / 456.9 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.4177, allocations: 360.4 kB / 457.2 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004024/0.4217, allocations: 1.498 MB / 458.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.4223, allocations: 163.5 kB / 458.9 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004383/0.4267, allocations: 4.134 MB / 463 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.4284, allocations: 0.9631 MB / 464 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.4299, allocations: 0.9275 MB / 464.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.4314, allocations: 1.604 MB / 466.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003473/0.4318, allocations: 159 kB / 466.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.4332, allocations: 0.7946 MB / 467.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.4344, allocations: 1.394 MB / 468.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/0.436, allocations: 1.761 MB / 470.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006244/0.4422, allocations: 5.332 MB / 476 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.4423, allocations: 0.6094 kB / 476 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4423, allocations: 0 / 476 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002426/0.4425, allocations: 1.344 kB / 476 MB, free: 10.07 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.02964/0.4722, allocations: 6.965 MB / 482.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/0.4723, allocations: 9.219 kB / 482.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007553/0.4798, allocations: 1.834 MB / 484.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.484, allocations: 1.699 MB / 486.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.4842, allocations: 188.3 kB / 486.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001157/0.4854, allocations: 250.2 kB / 486.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/0.508, allocations: 10.4 MB / 497.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.5082, allocations: 35.66 kB / 497.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008025/0.509, allocations: 115.8 kB / 497.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003691/0.5127, allocations: 2.157 MB / 499.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02477/0.5375, allocations: 10.35 MB / 0.498 GB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05716/0.5947, allocations: 33.52 MB / 0.5307 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01867/0.6134, allocations: 4.323 MB / 0.535 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003332/0.6168, allocations: 1.688 MB / 0.5366 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/0.6299, allocations: 8.598 MB / 0.545 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.159e-05/0.63, allocations: 56.55 kB / 0.5451 GB, free: 1.344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=237): time 8.556e-06/0.63, allocations: 3.938 kB / 0.5451 GB, free: 1.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=277): time 0.03193/0.662, allocations: 12.75 MB / 0.5575 GB, free: 4.434 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004528/0.6665, allocations: 3.368 MB / 0.5608 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00569/0.6723, allocations: 3.043 MB / 0.5638 GB, free: 13.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003858/0.6727, allocations: 65.7 kB / 0.5638 GB, free: 13.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001901/0.6746, allocations: 2.404 MB / 0.5662 GB, free: 11.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.6759, allocations: 0.9981 MB / 0.5672 GB, free: 10.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002513/0.6785, allocations: 1.084 MB / 0.5682 GB, free: 9.238 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.6786, allocations: 301.1 kB / 0.5685 GB, free: 8.941 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003491/0.6821, allocations: 1.904 MB / 0.5704 GB, free: 7.031 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005417/0.6875, allocations: 4.673 MB / 0.5749 GB, free: 1.023 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2143/0.9019, allocations: 7.144 MB / 0.5819 GB, free: 121.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.129e-05/0.902, allocations: 29.97 kB / 0.5819 GB, free: 121.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01279/0.9148, allocations: 7.047 MB / 0.5888 GB, free: 119 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.44e-05/0.9149, allocations: 43.66 kB / 0.5889 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/0.915, allocations: 96.55 kB / 0.5889 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.9163, allocations: 0.5433 MB / 0.5895 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004444/0.9208, allocations: 1.232 MB / 0.5907 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008768/0.9296, allocations: 6.777 MB / 0.5973 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005119/0.9347, allocations: 280 kB / 0.5976 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/0.936, allocations: 322.5 kB / 0.5979 GB, free: 114.4 MB / 446.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.004739/0.9407, allocations: 1.854 MB / 0.5997 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000898/0.9416, allocations: 298 kB / 0.6 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006992/0.9486, allocations: 3.834 MB / 0.6037 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001136/0.9488, allocations: 40.69 kB / 0.6038 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-05/0.9488, allocations: 9.25 kB / 0.6038 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/0.9488, allocations: 10.03 kB / 0.6038 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02247/0.9713, allocations: 10.97 MB / 0.6145 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.9714, allocations: 5.562 kB / 0.6145 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.9731, allocations: 393.2 kB / 0.6149 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.9745, allocations: 0.5561 MB / 0.6154 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003245/0.9749, allocations: 56.61 kB / 0.6155 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009647/0.9845, allocations: 7.375 MB / 0.6227 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003398/0.988, allocations: 3.125 MB / 0.6257 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009884/0.9979, allocations: 5.846 MB / 0.6314 GB, free: 98.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/0.9997, allocations: 0.6287 MB / 0.632 GB, free: 98.33 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007828/1, allocations: 50.77 kB / 0.6321 GB, free: 98.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/1.002, allocations: 124.7 kB / 0.6322 GB, free: 98.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005625/1.003, allocations: 184.8 kB / 0.6324 GB, free: 98.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/1.003, allocations: 77.94 kB / 0.6325 GB, free: 98.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004096/1.007, allocations: 1.948 MB / 0.6344 GB, free: 97.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.007, allocations: 0 / 0.6344 GB, free: 97.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00558/1.013, allocations: 0.9831 MB / 0.6353 GB, free: 97.14 MB / 446.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.0006766/1.013, allocations: 192.8 kB / 0.6355 GB, free: 96.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00836/1.022, allocations: 5.043 MB / 0.6404 GB, free: 92.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.022, allocations: 0 / 0.6404 GB, free: 92.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003393/1.025, allocations: 2.139 MB / 0.6425 GB, free: 90.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0036/1.029, allocations: 445.4 kB / 0.6429 GB, free: 90.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/1.046, allocations: 10.82 MB / 0.6535 GB, free: 80.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005229/1.052, allocations: 3.007 MB / 0.6564 GB, free: 77.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004586/1.056, allocations: 1.61 MB / 0.658 GB, free: 75.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009602/1.057, allocations: 235.4 kB / 0.6582 GB, free: 75.67 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/1.057, allocations: 0 / 0.6582 GB, free: 75.67 MB / 446.1 MB Notification: Performance of Templates: time 0.06113/1.118, allocations: 37.43 MB / 0.6948 GB, free: 38.47 MB / 446.1 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)