Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001748/0.001748, allocations: 189.5 kB / 17.35 MB, free: 5.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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04633/0.04633, allocations: 9.13 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.91 kB / 415.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08854, allocations: 51.44 MB / 466.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.0101/0.09867, allocations: 9.717 MB / 476.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005397/0.1041, allocations: 2.838 MB / 479.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000739/0.1049, allocations: 39.94 kB / 479.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007856/0.1057, allocations: 417.1 kB / 479.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003006/0.1087, allocations: 1.583 MB / 481.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.1091, allocations: 187.7 kB / 481.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002908/0.1121, allocations: 2.855 MB / 484.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/0.1133, allocations: 1.086 MB / 485.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.1144, allocations: 1.035 MB / 486.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001662/0.1161, allocations: 1.456 MB / 488 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004071/0.1165, allocations: 260 kB / 488.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.118, allocations: 0.8698 MB / 489.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001164/0.1192, allocations: 1.352 MB / 490.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001624/0.1208, allocations: 1.759 MB / 492.2 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005275/0.1261, allocations: 5.485 MB / 497.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1261, allocations: 0 / 497.7 MB, free: 2.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1261, allocations: 4 kB / 497.7 MB, free: 2.605 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.211e-05/0.1262, allocations: 0 / 497.7 MB, free: 2.605 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01085/0.137, allocations: 5.269 MB / 0.4912 GB, free: 13.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.1371, allocations: 12.03 kB / 0.4912 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006435/0.1436, allocations: 1.824 MB / 0.493 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/0.146, allocations: 1.515 MB / 0.4944 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.1462, allocations: 172.3 kB / 0.4946 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004451/0.1466, allocations: 231.8 kB / 0.4948 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/0.1592, allocations: 8.96 MB / 0.5036 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-05/0.1593, allocations: 27.77 kB / 0.5036 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.1938/0.3531, allocations: 105.3 kB / 0.5037 GB, free: 41.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003448/0.3566, allocations: 2.014 MB / 0.5057 GB, free: 41.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01558/0.3722, allocations: 7.966 MB / 0.5134 GB, free: 39.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03258/0.4048, allocations: 28.54 MB / 0.5413 GB, free: 17.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0058/0.4106, allocations: 2.818 MB / 0.5441 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.4118, allocations: 0.9855 MB / 0.545 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006421/0.4182, allocations: 6.469 MB / 0.5513 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.4183, allocations: 47.81 kB / 0.5514 GB, free: 6.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.396e-06/0.4183, allocations: 8 kB / 0.5514 GB, free: 6.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01315/0.4315, allocations: 6.533 MB / 0.5578 GB, free: 44 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.4315, allocations: 69.41 kB / 0.5578 GB, free: 15.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003831/0.4354, allocations: 3.035 MB / 0.5608 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.4355, allocations: 49.7 kB / 0.5609 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.4369, allocations: 2.455 MB / 0.5633 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005404/0.4374, allocations: 0.7415 MB / 0.564 GB, free: 9.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.4386, allocations: 0.9296 MB / 0.5649 GB, free: 8.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.4387, allocations: 305.1 kB / 0.5652 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002272/0.441, allocations: 1.504 MB / 0.5666 GB, free: 6.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00382/0.4448, allocations: 4.084 MB / 0.5706 GB, free: 1.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006907/0.4517, allocations: 6.041 MB / 0.5765 GB, free: 10.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.632e-05/0.4518, allocations: 24 kB / 0.5766 GB, free: 10.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01031/0.4621, allocations: 5.975 MB / 0.5824 GB, free: 4.277 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.059e-05/0.4622, allocations: 44.19 kB / 0.5824 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.4623, allocations: 99.98 kB / 0.5825 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.4637, allocations: 0.5739 MB / 0.5831 GB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003055/0.4668, allocations: 1.002 MB / 0.5841 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.4782, allocations: 9.328 MB / 0.5932 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/0.4816, allocations: 235.9 kB / 0.5934 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000694/0.4823, allocations: 280 kB / 0.5937 GB, free: 8.309 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.003059/0.4854, allocations: 1.734 MB / 0.5954 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005255/0.4859, allocations: 278.1 kB / 0.5956 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004784/0.4907, allocations: 2.656 MB / 0.5982 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.4907, allocations: 11.97 kB / 0.5982 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4908, allocations: 0.9375 kB / 0.5982 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006899/0.4915, allocations: 347.2 kB / 0.5986 GB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/0.4918, allocations: 31.92 kB / 0.5986 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/0.4926, allocations: 75.91 kB / 0.5987 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.4929, allocations: 129.7 kB / 0.5988 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004869/0.4978, allocations: 2.633 MB / 0.6014 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004622/0.5024, allocations: 3.512 MB / 0.6048 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001213/0.5036, allocations: 0.9213 MB / 0.6057 GB, free: 11.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003085/0.5067, allocations: 1.936 MB / 0.6076 GB, free: 9.965 MB / 446.1 MB Notification: Performance of Backend: time 4.71e-07/0.5067, allocations: 0 / 0.6076 GB, free: 9.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006716/0.5134, allocations: 3.511 MB / 0.611 GB, free: 6.438 MB / 446.1 MB Notification: Performance of SimCode: time 0.01277/0.5262, allocations: 7.827 MB / 0.6187 GB, free: 14.57 MB / 462.1 MB Notification: Performance of Templates: time 0.06541/0.5917, allocations: 38.54 MB / 0.6563 GB, free: 8.16 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)