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.001848/0.001848, allocations: 177.1 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.343/2.343, allocations: 223.2 MB / 239.8 MB, free: 15.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.001266/0.001266, allocations: 98.23 kB / 290.9 MB, free: 4.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06747/0.06747, allocations: 8.948 MB / 351 MB, free: 4.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005492/0.0005494, allocations: 19.98 kB / 413.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.4328, allocations: 52.37 MB / 466.2 MB, free: 69.24 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.SingleTrackWithEngine): time 0.03721/0.4701, allocations: 32.56 MB / 498.8 MB, free: 36.59 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03207/0.5023, allocations: 7.39 MB / 0.4943 GB, free: 29.19 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01444/0.5169, allocations: 127.8 kB / 0.4944 GB, free: 29.06 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009003/0.526, allocations: 1.59 MB / 0.496 GB, free: 27.46 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02467/0.5507, allocations: 5.65 MB / 0.5015 GB, free: 21.79 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003927/0.5547, allocations: 155.8 kB / 0.5017 GB, free: 21.64 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007287/0.5621, allocations: 3.216 MB / 0.5048 GB, free: 18.42 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002565/0.5647, allocations: 0.8943 MB / 0.5057 GB, free: 17.49 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00365/0.5684, allocations: 0.9182 MB / 0.5066 GB, free: 16.57 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004185/0.5727, allocations: 1.495 MB / 0.508 GB, free: 15.07 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001462/0.5742, allocations: 148 kB / 0.5082 GB, free: 14.92 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002656/0.5769, allocations: 0.6749 MB / 0.5088 GB, free: 14.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002373/0.5793, allocations: 1.297 MB / 0.5101 GB, free: 12.95 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.5809, allocations: 0.7221 MB / 0.5108 GB, free: 12.21 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0089/0.5898, allocations: 4.135 MB / 0.5148 GB, free: 8.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.59, allocations: 0 / 0.5148 GB, free: 8.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.021e-06/0.59, allocations: 3.984 kB / 0.5148 GB, free: 8.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003765/0.5904, allocations: 0 / 0.5148 GB, free: 8.066 MB / 346.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.04159/0.632, allocations: 6.072 MB / 0.5208 GB, free: 1.926 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.6321, allocations: 15.97 kB / 0.5208 GB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.6451, allocations: 1.859 MB / 0.5226 GB, free: 44 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007572/0.6528, allocations: 1.627 MB / 0.5242 GB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005415/0.6534, allocations: 172.3 kB / 0.5244 GB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002329/0.6558, allocations: 235.8 kB / 0.5246 GB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/0.69, allocations: 10.23 MB / 0.5346 GB, free: 3.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000152/0.6903, allocations: 39.66 kB / 0.5346 GB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005512/0.6909, allocations: 107.8 kB / 0.5347 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00428/0.6951, allocations: 2.149 MB / 0.5368 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04252/0.7377, allocations: 10.14 MB / 0.5467 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5766/1.314, allocations: 32.92 MB / 0.5789 GB, free: 65.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03211/1.347, allocations: 4.168 MB / 0.5829 GB, free: 62.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005113/1.352, allocations: 1.55 MB / 0.5844 GB, free: 62.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02042/1.372, allocations: 8.441 MB / 0.5927 GB, free: 54.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.364e-05/1.372, allocations: 52.56 kB / 0.5927 GB, free: 54.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 9.909e-06/1.372, allocations: 0 / 0.5927 GB, free: 54.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=257): time 0.05012/1.423, allocations: 12.17 MB / 0.6046 GB, free: 42.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006442/1.429, allocations: 3.334 MB / 0.6079 GB, free: 38.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007446/1.437, allocations: 2.966 MB / 0.6108 GB, free: 35.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006672/1.437, allocations: 61.7 kB / 0.6108 GB, free: 35.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002725/1.44, allocations: 2.375 MB / 0.6132 GB, free: 33.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001921/1.442, allocations: 0.9378 MB / 0.6141 GB, free: 32.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004862/1.443, allocations: 107.4 kB / 0.6142 GB, free: 32.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004869/1.443, allocations: 0.5254 MB / 0.6147 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005711/1.449, allocations: 1.795 MB / 0.6164 GB, free: 29.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008361/1.457, allocations: 4.506 MB / 0.6208 GB, free: 24.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008658/1.466, allocations: 2.86 MB / 0.6236 GB, free: 21.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.466, allocations: 31.95 kB / 0.6237 GB, free: 21.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.02431/1.49, allocations: 6.742 MB / 0.6302 GB, free: 14.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/1.491, allocations: 44 kB / 0.6303 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001646/1.491, allocations: 96.12 kB / 0.6304 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002335/1.493, allocations: 0.5296 MB / 0.6309 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008114/1.501, allocations: 1.181 MB / 0.6321 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01256/1.514, allocations: 6.355 MB / 0.6383 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009512/1.524, allocations: 271.8 kB / 0.6385 GB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002347/1.526, allocations: 311.9 kB / 0.6388 GB, free: 5.352 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008308/1.534, allocations: 1.823 MB / 0.6406 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/1.536, allocations: 276.4 kB / 0.6409 GB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/1.546, allocations: 3.579 MB / 0.6444 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000233/1.547, allocations: 35.98 kB / 0.6444 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.102e-05/1.547, allocations: 8 kB / 0.6444 GB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.761e-05/1.547, allocations: 11.95 kB / 0.6444 GB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04007/1.587, allocations: 10.42 MB / 0.6546 GB, free: 4.988 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.494e-05/1.587, allocations: 11.98 kB / 0.6546 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00347/1.591, allocations: 347.5 kB / 0.6549 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002805/1.593, allocations: 0.5456 MB / 0.6555 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005406/1.594, allocations: 51.98 kB / 0.6555 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/1.611, allocations: 6.929 MB / 0.6623 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007/1.618, allocations: 3.11 MB / 0.6653 GB, free: 9.602 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01975/1.638, allocations: 5.429 MB / 0.6706 GB, free: 4.039 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002473/1.641, allocations: 365.4 kB / 0.671 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001804/1.643, allocations: 51.98 kB / 0.671 GB, free: 3.609 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004/1.647, allocations: 107.9 kB / 0.6711 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009998/1.648, allocations: 169.4 kB / 0.6713 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005278/1.648, allocations: 71.98 kB / 0.6713 GB, free: 3.273 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008674/1.657, allocations: 1.892 MB / 0.6732 GB, free: 1.375 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.877e-06/1.657, allocations: 4 kB / 0.6732 GB, free: 1.371 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01153/1.669, allocations: 0.9504 MB / 0.6741 GB, free: 436 kB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 24,(3,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001461/1.67, allocations: 184.9 kB / 0.6743 GB, free: 244 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01671/1.687, allocations: 4.768 MB / 0.679 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.791e-05/1.687, allocations: 4.625 kB / 0.679 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007181/1.694, allocations: 2.005 MB / 0.6809 GB, free: 9.418 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007125/1.702, allocations: 441.9 kB / 0.6813 GB, free: 8.996 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03864/1.74, allocations: 10.61 MB / 0.6917 GB, free: 14.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009316/1.75, allocations: 2.955 MB / 0.6946 GB, free: 11.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00282/1.753, allocations: 275.4 kB / 0.6949 GB, free: 11.04 MB / 442.7 MB Notification: Performance of SimCode: time 3.977e-06/1.753, allocations: 4 kB / 0.6949 GB, free: 11.04 MB / 442.7 MB Notification: Performance of Templates: time 0.6414/2.394, allocations: 85.5 MB / 0.7783 GB, free: 103.8 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)