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.006467/0.006467, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001287/0.001287, allocations: 201.3 kB / 16.68 MB, free: 6.375 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2037/0.2037, allocations: 9.12 MB / 299.7 MB, free: 1.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 414.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2841, allocations: 51.42 MB / 466.1 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.01063/0.2948, allocations: 10.11 MB / 476.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006618/0.3014, allocations: 2.879 MB / 479.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.3036, allocations: 40.84 kB / 479.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.3053, allocations: 433.3 kB / 479.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004339/0.3097, allocations: 1.603 MB / 481.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005657/0.3102, allocations: 190.1 kB / 481.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.3134, allocations: 2.957 MB / 484.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.3145, allocations: 1.059 MB / 485.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.3161, allocations: 1.079 MB / 486.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001695/0.3178, allocations: 1.572 MB / 488 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004323/0.3182, allocations: 270.8 kB / 488.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.3196, allocations: 0.8615 MB / 489.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009734/0.3206, allocations: 1.483 MB / 490.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.3221, allocations: 1.858 MB / 492.4 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006744/0.3289, allocations: 5.797 MB / 498.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3289, allocations: 0 / 498.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3289, allocations: 4 kB / 498.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001249/0.3291, allocations: 3.938 kB / 498.2 MB, free: 12.03 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.02603/0.3551, allocations: 7.06 MB / 0.4935 GB, free: 4.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.3552, allocations: 8.031 kB / 0.4935 GB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006956/0.3621, allocations: 1.862 MB / 0.4953 GB, free: 3.016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003673/0.3658, allocations: 1.706 MB / 0.497 GB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.366, allocations: 188.9 kB / 0.4971 GB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000725/0.3668, allocations: 243.9 kB / 0.4974 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02181/0.3886, allocations: 10.4 MB / 0.5075 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/0.3888, allocations: 39.66 kB / 0.5076 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004505/0.3892, allocations: 115.8 kB / 0.5077 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003565/0.3928, allocations: 2.157 MB / 0.5098 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02297/0.4158, allocations: 10.35 MB / 0.5199 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0562/0.472, allocations: 33.5 MB / 0.5526 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01804/0.4901, allocations: 4.313 MB / 0.5568 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003258/0.4934, allocations: 1.68 MB / 0.5585 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.5054, allocations: 8.628 MB / 0.5669 GB, free: 7.344 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.5055, allocations: 60.5 kB / 0.5669 GB, free: 7.277 MB / 446.1 MB Notification: Performance of pre-optimization done (n=237): time 6.643e-06/0.5055, allocations: 0 / 0.5669 GB, free: 7.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=277): time 0.02968/0.5352, allocations: 12.82 MB / 0.5795 GB, free: 10.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004405/0.5396, allocations: 3.517 MB / 0.5829 GB, free: 6.633 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005826/0.5455, allocations: 3.048 MB / 0.5859 GB, free: 3.574 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003281/0.5458, allocations: 65.69 kB / 0.5859 GB, free: 3.504 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001898/0.5478, allocations: 2.513 MB / 0.5884 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2725/0.8203, allocations: 1.045 MB / 0.5894 GB, free: 112 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002075/0.8224, allocations: 1.083 MB / 0.5905 GB, free: 112 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.26e-05/0.8224, allocations: 302.6 kB / 0.5908 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003375/0.8258, allocations: 1.904 MB / 0.5926 GB, free: 111.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004651/0.8305, allocations: 4.668 MB / 0.5972 GB, free: 106.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009242/0.8398, allocations: 7.157 MB / 0.6042 GB, free: 101.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/0.84, allocations: 27.28 kB / 0.6042 GB, free: 101.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.01518/0.8551, allocations: 7.064 MB / 0.6111 GB, free: 98.78 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.8553, allocations: 45.88 kB / 0.6111 GB, free: 98.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002906/0.8556, allocations: 95.03 kB / 0.6112 GB, free: 98.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/0.8573, allocations: 0.5399 MB / 0.6117 GB, free: 98.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004312/0.8616, allocations: 1.23 MB / 0.6129 GB, free: 98.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009423/0.871, allocations: 7.373 MB / 0.6201 GB, free: 93.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004884/0.876, allocations: 273.3 kB / 0.6204 GB, free: 93.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006539/0.8766, allocations: 314.8 kB / 0.6207 GB, free: 93.77 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.002755/0.8794, allocations: 1.847 MB / 0.6225 GB, free: 92.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/0.8799, allocations: 311.8 kB / 0.6228 GB, free: 92.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/0.8851, allocations: 3.84 MB / 0.6266 GB, free: 91.44 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.543e-05/0.8852, allocations: 40.55 kB / 0.6266 GB, free: 91.44 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.8852, allocations: 15.72 kB / 0.6266 GB, free: 91.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/0.8852, allocations: 14.58 kB / 0.6266 GB, free: 91.43 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.899, allocations: 10.86 MB / 0.6372 GB, free: 84.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.899, allocations: 4 kB / 0.6372 GB, free: 84.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.9004, allocations: 393.9 kB / 0.6376 GB, free: 83.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.9015, allocations: 0.5578 MB / 0.6382 GB, free: 83.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/0.9017, allocations: 55.98 kB / 0.6382 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007617/0.9093, allocations: 8.108 MB / 0.6461 GB, free: 74.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002612/0.9119, allocations: 3.276 MB / 0.6493 GB, free: 71.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007139/0.9191, allocations: 5.873 MB / 0.6551 GB, free: 65.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.9203, allocations: 0.6351 MB / 0.6557 GB, free: 64.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006521/0.921, allocations: 48 kB / 0.6557 GB, free: 64.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.9227, allocations: 123.8 kB / 0.6558 GB, free: 64.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/0.923, allocations: 181.6 kB / 0.656 GB, free: 64.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.9232, allocations: 79.66 kB / 0.6561 GB, free: 64.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.9261, allocations: 1.952 MB / 0.658 GB, free: 62.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9261, allocations: 0 / 0.658 GB, free: 62.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004725/0.9308, allocations: 0.9773 MB / 0.659 GB, free: 61.34 MB / 462.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.0005155/0.9313, allocations: 200.7 kB / 0.6591 GB, free: 61.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008186/0.9395, allocations: 5.084 MB / 0.6641 GB, free: 56.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/0.9396, allocations: 384 / 0.6641 GB, free: 56.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003333/0.943, allocations: 2.135 MB / 0.6662 GB, free: 53.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/0.9459, allocations: 480.8 kB / 0.6667 GB, free: 53.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.9581, allocations: 9.013 MB / 0.6755 GB, free: 44.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002733/0.9609, allocations: 3.004 MB / 0.6784 GB, free: 41.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003322/0.9642, allocations: 1.613 MB / 0.68 GB, free: 39.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006898/0.965, allocations: 235.4 kB / 0.6802 GB, free: 39.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.965, allocations: 4 kB / 0.6802 GB, free: 39.45 MB / 462.1 MB Notification: Performance of Templates: time 0.0543/1.019, allocations: 36.25 MB / 0.7156 GB, free: 3.422 MB / 462.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)