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.001787/0.001787, allocations: 113.5 kB / 16.42 MB, free: 6.484 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.001389/0.001389, allocations: 186.6 kB / 17.35 MB, free: 5.75 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04591/0.04591, allocations: 9.115 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 71.89 kB / 415.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.08316, allocations: 51.44 MB / 466.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01072/0.09391, allocations: 9.713 MB / 476.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006874/0.1008, allocations: 2.85 MB / 479.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001863/0.1027, allocations: 39.94 kB / 479.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.104, allocations: 417.1 kB / 479.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004489/0.1085, allocations: 1.529 MB / 481.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007584/0.1093, allocations: 187.7 kB / 481.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004105/0.1134, allocations: 2.855 MB / 484.3 MB, free: 40 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.1152, allocations: 1.071 MB / 485.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.1165, allocations: 1.035 MB / 486.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.1181, allocations: 1.463 MB / 487.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003738/0.1185, allocations: 263.9 kB / 488.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.12, allocations: 0.8582 MB / 489 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.1211, allocations: 1.352 MB / 490.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001466/0.1226, allocations: 1.763 MB / 492.1 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.1277, allocations: 5.473 MB / 497.6 MB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1277, allocations: 0 / 497.6 MB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1277, allocations: 0 / 497.6 MB, free: 2.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.753e-05/0.1278, allocations: 0 / 497.6 MB, free: 2.691 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.0117/0.1395, allocations: 5.17 MB / 0.491 GB, free: 13.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1396, allocations: 12.03 kB / 0.491 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006811/0.1464, allocations: 1.806 MB / 0.4928 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002468/0.1489, allocations: 1.506 MB / 0.4942 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.149, allocations: 172.3 kB / 0.4944 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004255/0.1494, allocations: 231.8 kB / 0.4946 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.1623, allocations: 8.956 MB / 0.5034 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.721e-05/0.1624, allocations: 31.72 kB / 0.5034 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003202/0.1627, allocations: 111.8 kB / 0.5035 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2111/0.3738, allocations: 2.007 MB / 0.5055 GB, free: 41.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01533/0.3892, allocations: 7.963 MB / 0.5132 GB, free: 38.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03449/0.4237, allocations: 28.48 MB / 0.5411 GB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006204/0.43, allocations: 2.822 MB / 0.5438 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.4312, allocations: 0.9894 MB / 0.5448 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006792/0.438, allocations: 6.457 MB / 0.5511 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.4381, allocations: 43.88 kB / 0.5511 GB, free: 6.285 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.557e-06/0.4381, allocations: 0 / 0.5511 GB, free: 6.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.0137/0.4518, allocations: 6.48 MB / 0.5575 GB, free: 15.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4518, allocations: 73.41 kB / 0.5575 GB, free: 15.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/0.4557, allocations: 3.03 MB / 0.5605 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.466e-05/0.4558, allocations: 49.7 kB / 0.5605 GB, free: 12.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.4572, allocations: 2.36 MB / 0.5628 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005287/0.4578, allocations: 0.7083 MB / 0.5635 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001137/0.4589, allocations: 0.9269 MB / 0.5644 GB, free: 8.621 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.459, allocations: 301.1 kB / 0.5647 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002245/0.4613, allocations: 1.511 MB / 0.5662 GB, free: 6.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.4653, allocations: 4.08 MB / 0.5702 GB, free: 1.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007471/0.4727, allocations: 6.032 MB / 0.5761 GB, free: 10.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.318e-05/0.4729, allocations: 24 kB / 0.5761 GB, free: 10.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01092/0.4838, allocations: 5.969 MB / 0.5819 GB, free: 4.164 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.4839, allocations: 44 kB / 0.582 GB, free: 4.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001472/0.484, allocations: 95.94 kB / 0.5821 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.4855, allocations: 0.5737 MB / 0.5826 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/0.4885, allocations: 1.002 MB / 0.5836 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.4995, allocations: 9.318 MB / 0.5927 GB, free: 8.711 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.5027, allocations: 239.8 kB / 0.5929 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005213/0.5032, allocations: 280 kB / 0.5932 GB, free: 8.207 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.002538/0.5058, allocations: 1.732 MB / 0.5949 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000424/0.5062, allocations: 264.5 kB / 0.5951 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004505/0.5107, allocations: 2.659 MB / 0.5977 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.5108, allocations: 7.969 kB / 0.5977 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5108, allocations: 0 / 0.5977 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.5113, allocations: 329.8 kB / 0.5981 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/0.5116, allocations: 28 kB / 0.5981 GB, free: 3.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009284/0.5126, allocations: 75.91 kB / 0.5982 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.5128, allocations: 133.7 kB / 0.5983 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004855/0.5177, allocations: 2.644 MB / 0.6009 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004645/0.5223, allocations: 3.483 MB / 0.6043 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001298/0.5237, allocations: 0.9213 MB / 0.6052 GB, free: 11.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002989/0.5267, allocations: 1.94 MB / 0.6071 GB, free: 9.934 MB / 446.1 MB Notification: Performance of Backend: time 2.7e-07/0.5267, allocations: 0 / 0.6071 GB, free: 9.934 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006133/0.5328, allocations: 3.507 MB / 0.6105 GB, free: 6.414 MB / 446.1 MB Notification: Performance of SimCode: time 0.01311/0.5459, allocations: 7.695 MB / 0.618 GB, free: 14.7 MB / 462.1 MB Notification: Performance of Templates: time 0.06637/0.6123, allocations: 38.56 MB / 0.6556 GB, free: 8.285 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)