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.001189/0.001189, 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.001277/0.001278, allocations: 193 kB / 16.14 MB, free: 6.703 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1924/0.1924, allocations: 9.116 MB / 299.1 MB, free: 1.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.89 kB / 361.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1279, allocations: 51.43 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2749/0.4028, allocations: 39.67 MB / 452.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02002/0.4229, allocations: 8.421 MB / 460.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01043/0.4334, allocations: 146 kB / 460.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.4352, allocations: 351.8 kB / 461.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005/0.4403, allocations: 1.424 MB / 462.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009976/0.4413, allocations: 160.6 kB / 462.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004788/0.4461, allocations: 3.912 MB / 466.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002068/0.4482, allocations: 0.9801 MB / 467.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.4503, allocations: 0.8895 MB / 468.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.4527, allocations: 1.481 MB / 470.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008442/0.4536, allocations: 160.8 kB / 470.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.4558, allocations: 0.801 MB / 471.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001862/0.4577, allocations: 1.267 MB / 472.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004156/0.4619, allocations: 1.671 MB / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007964/0.4699, allocations: 5.042 MB / 479.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4699, allocations: 0 / 479.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4699, allocations: 1.25 kB / 479.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003249/0.4702, allocations: 0 / 479.1 MB, free: 7.23 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.01846/0.4887, allocations: 5.168 MB / 484.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.4888, allocations: 10.19 kB / 484.2 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00812/0.4969, allocations: 1.811 MB / 486.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004247/0.5012, allocations: 1.498 MB / 487.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.5014, allocations: 169.7 kB / 487.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.5025, allocations: 237.2 kB / 487.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01845/0.5209, allocations: 8.951 MB / 496.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001153/0.5211, allocations: 32.64 kB / 496.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005858/0.5217, allocations: 110.2 kB / 497 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003556/0.5252, allocations: 2.018 MB / 499.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.5441, allocations: 7.962 MB / 0.4951 GB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04932/0.5935, allocations: 28.56 MB / 0.523 GB, free: 8.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007788/0.6013, allocations: 2.821 MB / 0.5258 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001868/0.6032, allocations: 0.9863 MB / 0.5267 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.6149, allocations: 6.472 MB / 0.5331 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.615, allocations: 43.88 kB / 0.5331 GB, free: 13.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 6.442e-06/0.615, allocations: 0 / 0.5331 GB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02509/0.6401, allocations: 9.741 MB / 0.5426 GB, free: 4.031 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008277/0.6484, allocations: 6.48 MB / 0.5489 GB, free: 13.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005533/0.654, allocations: 3.023 MB / 0.5519 GB, free: 10.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000403/0.6544, allocations: 53.7 kB / 0.5519 GB, free: 10.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/0.6563, allocations: 2.354 MB / 0.5542 GB, free: 7.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009872/0.6574, allocations: 0.7247 MB / 0.555 GB, free: 7.035 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/0.6591, allocations: 0.9368 MB / 0.5559 GB, free: 6.086 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.6592, allocations: 301.1 kB / 0.5562 GB, free: 5.789 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/0.6621, allocations: 1.547 MB / 0.5577 GB, free: 4.234 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005036/0.6671, allocations: 4.125 MB / 0.5617 GB, free: 14.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007977/0.6751, allocations: 6.117 MB / 0.5677 GB, free: 7.461 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.492e-05/0.6752, allocations: 24 kB / 0.5677 GB, free: 7.438 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01432/0.6896, allocations: 6.071 MB / 0.5736 GB, free: 1.352 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.606e-05/0.6897, allocations: 47.94 kB / 0.5737 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001673/0.6899, allocations: 92 kB / 0.5738 GB, free: 1.215 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/0.6915, allocations: 0.5766 MB / 0.5743 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2192/0.9107, allocations: 1.016 MB / 0.5753 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009278/0.92, allocations: 8.503 MB / 0.5836 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.9242, allocations: 246.4 kB / 0.5838 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008446/0.9251, allocations: 282.5 kB / 0.5841 GB, free: 120 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.00406/0.9292, allocations: 1.726 MB / 0.5858 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006582/0.9298, allocations: 274.8 kB / 0.5861 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/0.9351, allocations: 2.908 MB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001236/0.9353, allocations: 33.22 kB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/0.9353, allocations: 4.594 kB / 0.5889 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.911e-05/0.9354, allocations: 12.05 kB / 0.589 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/0.9557, allocations: 9.338 MB / 0.5981 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.9557, allocations: 3.281 kB / 0.5981 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.9565, allocations: 212.2 kB / 0.5983 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/0.958, allocations: 0.6067 MB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/0.9582, allocations: 37.72 kB / 0.5989 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009362/0.9675, allocations: 8.721 MB / 0.6074 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005761/0.9733, allocations: 5.685 MB / 0.613 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007478/0.9809, allocations: 4.231 MB / 0.6171 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.982, allocations: 343.5 kB / 0.6174 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005948/0.9826, allocations: 34.89 kB / 0.6175 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.9838, allocations: 86.64 kB / 0.6175 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004349/0.9842, allocations: 139.9 kB / 0.6177 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.9844, allocations: 57.23 kB / 0.6177 GB, free: 103 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004257/0.9886, allocations: 1.936 MB / 0.6196 GB, free: 102.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.9887, allocations: 0 / 0.6196 GB, free: 102.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006205/0.9949, allocations: 0.8993 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.0007182/0.9956, allocations: 165.8 kB / 0.6207 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008576/1.004, allocations: 4.206 MB / 0.6248 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/1.004, allocations: 5.219 kB / 0.6248 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003582/1.008, allocations: 1.741 MB / 0.6265 GB, free: 99.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/1.011, allocations: 420.4 kB / 0.6269 GB, free: 99.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/1.03, allocations: 9.338 MB / 0.636 GB, free: 94.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/1.034, allocations: 2.836 MB / 0.6388 GB, free: 92.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003654/1.037, allocations: 1.331 MB / 0.6401 GB, free: 92.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006593/1.038, allocations: 197 kB / 0.6403 GB, free: 92.82 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/1.038, allocations: 3.938 kB / 0.6403 GB, free: 92.81 MB / 446.1 MB Notification: Performance of Templates: time 0.05788/1.096, allocations: 33.7 MB / 0.6732 GB, free: 60.85 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)