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.005817/0.005816, allocations: 97.23 kB / 15.73 MB, free: 6.488 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.001278/0.001278, allocations: 189.4 kB / 16.67 MB, free: 6.391 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1828/0.1828, allocations: 9.121 MB / 299.6 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 60.12 kB / 414.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2978, allocations: 51.42 MB / 466.1 MB, free: 18.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.009161/0.307, allocations: 9.724 MB / 475.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006485/0.3136, allocations: 2.839 MB / 478.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.3154, allocations: 43.88 kB / 478.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.3165, allocations: 420.2 kB / 479.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003934/0.3205, allocations: 1.579 MB / 480.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.3211, allocations: 179.8 kB / 480.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.3245, allocations: 2.866 MB / 483.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.3258, allocations: 1.071 MB / 484.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001495/0.3273, allocations: 1.033 MB / 485.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002129/0.3294, allocations: 1.46 MB / 487.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005213/0.3299, allocations: 262.7 kB / 487.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.3317, allocations: 0.8581 MB / 488.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.3328, allocations: 1.35 MB / 489.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001406/0.3343, allocations: 1.761 MB / 491.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00738/0.3416, allocations: 5.495 MB / 497 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.3417, allocations: 0 / 497 MB, free: 13.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3417, allocations: 0 / 497 MB, free: 13.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002136/0.3419, allocations: 4 kB / 497 MB, free: 13.18 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.01487/0.3568, allocations: 5.273 MB / 0.4905 GB, free: 7.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3569, allocations: 8.031 kB / 0.4905 GB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006937/0.3638, allocations: 1.831 MB / 0.4923 GB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004054/0.3679, allocations: 1.511 MB / 0.4938 GB, free: 4.438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.3681, allocations: 168.3 kB / 0.4939 GB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006808/0.3688, allocations: 235.8 kB / 0.4942 GB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/0.384, allocations: 8.948 MB / 0.5029 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-05/0.3841, allocations: 35.7 kB / 0.5029 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002969/0.3844, allocations: 111.9 kB / 0.503 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.3874, allocations: 2.013 MB / 0.505 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01765/0.4051, allocations: 7.971 MB / 0.5128 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04687/0.452, allocations: 28.53 MB / 0.5406 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007152/0.4592, allocations: 2.81 MB / 0.5434 GB, free: 428 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.4608, allocations: 0.9881 MB / 0.5444 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009812/0.4707, allocations: 6.483 MB / 0.5507 GB, free: 8.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.4707, allocations: 43.88 kB / 0.5507 GB, free: 8.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.308e-06/0.4708, allocations: 0 / 0.5507 GB, free: 8.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.02266/0.4934, allocations: 9.832 MB / 0.5603 GB, free: 14.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008228/0.5017, allocations: 6.782 MB / 0.567 GB, free: 7.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/0.5064, allocations: 3.035 MB / 0.5699 GB, free: 4.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003333/0.5067, allocations: 53.7 kB / 0.57 GB, free: 4.125 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001662/0.5084, allocations: 2.45 MB / 0.5724 GB, free: 1.652 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008662/0.5093, allocations: 0.7557 MB / 0.5731 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.5106, allocations: 0.9415 MB / 0.574 GB, free: 15.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5107, allocations: 309.1 kB / 0.5743 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.513, allocations: 1.544 MB / 0.5758 GB, free: 14.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004153/0.5172, allocations: 4.118 MB / 0.5798 GB, free: 8.684 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/0.5244, allocations: 6.104 MB / 0.5858 GB, free: 1.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.011e-05/0.5245, allocations: 28 kB / 0.5858 GB, free: 1.293 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.3021/0.8266, allocations: 6.077 MB / 0.5918 GB, free: 107.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.132e-05/0.8267, allocations: 45.94 kB / 0.5918 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/0.8269, allocations: 94 kB / 0.5919 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.8285, allocations: 0.5679 MB / 0.5925 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003802/0.8323, allocations: 1.029 MB / 0.5935 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.8433, allocations: 9.311 MB / 0.6026 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004218/0.8476, allocations: 260.8 kB / 0.6028 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007973/0.8484, allocations: 278 kB / 0.6031 GB, free: 101.1 MB / 462.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.004298/0.8527, allocations: 1.729 MB / 0.6048 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006699/0.8534, allocations: 286.2 kB / 0.605 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005118/0.8585, allocations: 2.904 MB / 0.6079 GB, free: 99.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001075/0.8586, allocations: 32.52 kB / 0.6079 GB, free: 99.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.8586, allocations: 7.219 kB / 0.6079 GB, free: 99.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.8587, allocations: 7.969 kB / 0.6079 GB, free: 99.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01915/0.8778, allocations: 9.273 MB / 0.617 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.8779, allocations: 3.5 kB / 0.617 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007098/0.8786, allocations: 212.1 kB / 0.6172 GB, free: 95.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.88, allocations: 0.6014 MB / 0.6178 GB, free: 95.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.8801, allocations: 42.2 kB / 0.6178 GB, free: 95.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009209/0.8893, allocations: 9.49 MB / 0.6271 GB, free: 88.81 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005131/0.8945, allocations: 5.934 MB / 0.6329 GB, free: 84.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0056/0.9001, allocations: 4.247 MB / 0.637 GB, free: 79.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009741/0.9011, allocations: 359.2 kB / 0.6374 GB, free: 79.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003045/0.9014, allocations: 31.83 kB / 0.6374 GB, free: 79.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009585/0.9024, allocations: 91.89 kB / 0.6375 GB, free: 79.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.9027, allocations: 133 kB / 0.6376 GB, free: 79.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.9028, allocations: 60.05 kB / 0.6377 GB, free: 79.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002521/0.9053, allocations: 1.932 MB / 0.6395 GB, free: 77.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9053, allocations: 0 / 0.6395 GB, free: 77.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004154/0.9095, allocations: 0.8967 MB / 0.6404 GB, free: 76.36 MB / 462.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.0003854/0.9099, allocations: 181.7 kB / 0.6406 GB, free: 76.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005895/0.9158, allocations: 4.237 MB / 0.6447 GB, free: 71.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.9158, allocations: 0 / 0.6447 GB, free: 71.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.918, allocations: 1.753 MB / 0.6464 GB, free: 70.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.9202, allocations: 445.5 kB / 0.6469 GB, free: 69.71 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.9315, allocations: 7.656 MB / 0.6543 GB, free: 61.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002378/0.934, allocations: 2.826 MB / 0.6571 GB, free: 59.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002684/0.9367, allocations: 1.317 MB / 0.6584 GB, free: 57.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004374/0.9371, allocations: 207.4 kB / 0.6586 GB, free: 57.61 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.9371, allocations: 0 / 0.6586 GB, free: 57.61 MB / 462.1 MB Notification: Performance of Templates: time 0.05264/0.9898, allocations: 32.55 MB / 0.6904 GB, free: 25.27 MB / 462.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)