Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.001515, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001898/0.001898, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.415/1.415, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1923/0.1923, allocations: 9.113 MB / 299.1 MB, free: 1.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 59.91 kB / 361.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1141, allocations: 51.43 MB / 412.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2332/0.3473, allocations: 39.68 MB / 452.4 MB, free: 20.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.3671, allocations: 8.413 MB / 460.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00973/0.3769, allocations: 153.1 kB / 460.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.3786, allocations: 352.6 kB / 461.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004301/0.3829, allocations: 1.426 MB / 462.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008221/0.3837, allocations: 162.3 kB / 462.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004793/0.3886, allocations: 3.911 MB / 466.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.3903, allocations: 0.9765 MB / 467.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.3921, allocations: 0.8819 MB / 468.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.3944, allocations: 1.489 MB / 470.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005567/0.3949, allocations: 161.2 kB / 470.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/0.3969, allocations: 0.796 MB / 471.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001285/0.3982, allocations: 1.264 MB / 472.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.4002, allocations: 1.673 MB / 474 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006652/0.4069, allocations: 5.035 MB / 479.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.407, allocations: 1.281 kB / 479.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.407, allocations: 3.938 kB / 479.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002164/0.4072, allocations: 4 kB / 479.1 MB, free: 7.176 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01898/0.4262, allocations: 5.168 MB / 484.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.4262, allocations: 13.5 kB / 484.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007922/0.4342, allocations: 1.807 MB / 486.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004244/0.4385, allocations: 1.494 MB / 487.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.4387, allocations: 180.2 kB / 487.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008292/0.4395, allocations: 234.6 kB / 488 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.4557, allocations: 8.954 MB / 496.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.4559, allocations: 31.06 kB / 496.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003875/0.4563, allocations: 105.5 kB / 497 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003508/0.4598, allocations: 2.013 MB / 499.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0179/0.4777, allocations: 7.966 MB / 0.4951 GB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04887/0.5266, allocations: 28.55 MB / 0.523 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007398/0.534, allocations: 2.82 MB / 0.5258 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.5357, allocations: 0.989 MB / 0.5267 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009386/0.5451, allocations: 6.468 MB / 0.5331 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/0.5452, allocations: 47.88 kB / 0.5331 GB, free: 13.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.808e-06/0.5452, allocations: 0 / 0.5331 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.0219/0.5671, allocations: 9.744 MB / 0.5426 GB, free: 3.996 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008045/0.5752, allocations: 6.468 MB / 0.5489 GB, free: 13.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004362/0.5796, allocations: 3.023 MB / 0.5519 GB, free: 10.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.5799, allocations: 57.7 kB / 0.5519 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.5814, allocations: 2.354 MB / 0.5542 GB, free: 7.734 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007205/0.5821, allocations: 0.7169 MB / 0.5549 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/0.5834, allocations: 0.9485 MB / 0.5559 GB, free: 6.047 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.717e-05/0.5835, allocations: 301.1 kB / 0.5562 GB, free: 5.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002445/0.5859, allocations: 1.54 MB / 0.5577 GB, free: 4.203 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003985/0.5899, allocations: 4.126 MB / 0.5617 GB, free: 14.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007424/0.5974, allocations: 6.115 MB / 0.5677 GB, free: 7.426 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.901e-05/0.5975, allocations: 27.94 kB / 0.5677 GB, free: 7.398 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01269/0.6102, allocations: 6.06 MB / 0.5736 GB, free: 1.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.438e-05/0.6103, allocations: 47.94 kB / 0.5737 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/0.6104, allocations: 92 kB / 0.5737 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.6119, allocations: 0.5771 MB / 0.5743 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1891/0.801, allocations: 1.023 MB / 0.5753 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008242/0.8093, allocations: 8.504 MB / 0.5836 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004236/0.8136, allocations: 249.8 kB / 0.5838 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001233/0.8148, allocations: 282.1 kB / 0.5841 GB, free: 119.9 MB / 446.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 (554): * Single equations (assignments): 547 * 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.004042/0.8189, allocations: 1.724 MB / 0.5858 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008683/0.8198, allocations: 276.3 kB / 0.5861 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004901/0.8247, allocations: 2.909 MB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/0.8248, allocations: 31.31 kB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.8249, allocations: 3.406 kB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/0.8249, allocations: 13.5 kB / 0.589 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.8387, allocations: 9.338 MB / 0.5981 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.8387, allocations: 6.688 kB / 0.5981 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007287/0.8395, allocations: 210.4 kB / 0.5983 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001395/0.8409, allocations: 0.6122 MB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.168e-05/0.841, allocations: 36.12 kB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00825/0.8492, allocations: 8.711 MB / 0.6074 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005464/0.8547, allocations: 5.684 MB / 0.613 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006659/0.8614, allocations: 4.23 MB / 0.6171 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008759/0.8623, allocations: 342.3 kB / 0.6174 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003329/0.8627, allocations: 35.03 kB / 0.6175 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009775/0.8636, allocations: 94 kB / 0.6175 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.864, allocations: 132.4 kB / 0.6177 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.8642, allocations: 57.77 kB / 0.6177 GB, free: 103 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003266/0.8674, allocations: 1.936 MB / 0.6196 GB, free: 102.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8675, allocations: 3.875 kB / 0.6196 GB, free: 102.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004234/0.8717, allocations: 0.8924 MB / 0.6205 GB, free: 102.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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,15,56.0%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004263/0.8721, allocations: 174 kB / 0.6207 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007325/0.8795, allocations: 4.207 MB / 0.6248 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/0.8795, allocations: 0 / 0.6248 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003767/0.8833, allocations: 1.747 MB / 0.6265 GB, free: 99.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.886, allocations: 423.1 kB / 0.6269 GB, free: 99.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/0.899, allocations: 9.324 MB / 0.636 GB, free: 94.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002541/0.9016, allocations: 2.841 MB / 0.6388 GB, free: 92.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002996/0.9046, allocations: 1.331 MB / 0.6401 GB, free: 92.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004881/0.9051, allocations: 204.1 kB / 0.6403 GB, free: 92.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9051, allocations: 0 / 0.6403 GB, free: 92.72 MB / 446.1 MB Notification: Performance of Templates: time 0.04858/0.9537, allocations: 33.71 MB / 0.6732 GB, free: 60.82 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)