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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.009722/0.009722, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 239 MB, free: 1.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008986/0.0008987, allocations: 98.61 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04023/0.04023, allocations: 8.939 MB / 350.3 MB, free: 2.078 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 8.281 kB / 413.1 MB, free: 88.58 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08412, allocations: 52.4 MB / 465.5 MB, free: 41.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3155/0.3996, allocations: 87.54 MB / 0.5401 GB, free: 16.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.3999, allocations: 75.14 kB / 0.5402 GB, free: 16.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1576/0.5574, allocations: 70.13 MB / 0.6087 GB, free: 7.949 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5575, allocations: 0 / 0.6087 GB, free: 7.949 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001419/0.5576, allocations: 60 kB / 0.6087 GB, free: 7.891 MB / 378.7 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.0157/0.5734, allocations: 3.817 MB / 0.6124 GB, free: 4.324 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.5734, allocations: 8.031 kB / 0.6124 GB, free: 4.316 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/0.584, allocations: 1.983 MB / 0.6144 GB, free: 2.332 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006307/0.5903, allocations: 1.868 MB / 0.6162 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003036/0.5906, allocations: 249.5 kB / 0.6164 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.5927, allocations: 329.2 kB / 0.6168 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01959/0.6123, allocations: 8.532 MB / 0.6251 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.6125, allocations: 27.81 kB / 0.6251 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006031/0.6131, allocations: 151.9 kB / 0.6253 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001481/0.6146, allocations: 1.002 MB / 0.6262 GB, free: 7.844 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01579/0.6304, allocations: 7.877 MB / 0.6339 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04363/0.674, allocations: 28.51 MB / 0.6618 GB, free: 2.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007416/0.6815, allocations: 2.831 MB / 0.6645 GB, free: 15.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0102/0.6917, allocations: 6.462 MB / 0.6708 GB, free: 8.809 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.6918, allocations: 47.81 kB / 0.6709 GB, free: 8.754 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 4.859e-06/0.6918, allocations: 4 kB / 0.6709 GB, free: 8.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.02297/0.7148, allocations: 10.16 MB / 0.6808 GB, free: 14.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01356/0.7284, allocations: 11.28 MB / 0.6918 GB, free: 2.453 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2063/0.9348, allocations: 2.661 MB / 0.6944 GB, free: 113 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000344/0.9352, allocations: 52.39 kB / 0.6945 GB, free: 112.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001656/0.9368, allocations: 2.356 MB / 0.6968 GB, free: 112.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006727/0.9375, allocations: 0.7221 MB / 0.6975 GB, free: 112 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002851/0.9378, allocations: 92.28 kB / 0.6976 GB, free: 112 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.9381, allocations: 0.5013 MB / 0.6981 GB, free: 111.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.9405, allocations: 1.489 MB / 0.6995 GB, free: 111.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004232/0.9447, allocations: 4.059 MB / 0.7035 GB, free: 108.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00353/0.9483, allocations: 2.446 MB / 0.7059 GB, free: 108.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.357e-05/0.9483, allocations: 27.16 kB / 0.7059 GB, free: 108.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=619) (initialization): time 0.008884/0.9572, allocations: 5.938 MB / 0.7117 GB, free: 107.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.385e-05/0.9574, allocations: 46.59 kB / 0.7117 GB, free: 107.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/0.9575, allocations: 94.19 kB / 0.7118 GB, free: 107.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/0.959, allocations: 0.5667 MB / 0.7124 GB, free: 107.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00373/0.9627, allocations: 1.018 MB / 0.7134 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009096/0.9718, allocations: 8.606 MB / 0.7218 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004333/0.9762, allocations: 232.1 kB / 0.722 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008448/0.9771, allocations: 276.8 kB / 0.7223 GB, free: 103.6 MB / 458.7 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 (552): * Single equations (assignments): 545 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.003423/0.9805, allocations: 1.732 MB / 0.724 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005107/0.981, allocations: 269 kB / 0.7242 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004737/0.9858, allocations: 2.838 MB / 0.727 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001227/0.9859, allocations: 31.5 kB / 0.727 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.9859, allocations: 17.11 kB / 0.727 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.986, allocations: 7.547 kB / 0.727 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/1.003, allocations: 9.237 MB / 0.7361 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/1.003, allocations: 6.938 kB / 0.7361 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007487/1.004, allocations: 206.6 kB / 0.7363 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/1.006, allocations: 0.5743 MB / 0.7368 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/1.006, allocations: 34.61 kB / 0.7369 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008204/1.014, allocations: 8.793 MB / 0.7454 GB, free: 94.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005315/1.019, allocations: 5.769 MB / 0.7511 GB, free: 90.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006262/1.026, allocations: 4.416 MB / 0.7554 GB, free: 88.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.027, allocations: 358 kB / 0.7557 GB, free: 88.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/1.027, allocations: 31.88 kB / 0.7558 GB, free: 88.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009745/1.028, allocations: 84.84 kB / 0.7558 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000277/1.028, allocations: 133.7 kB / 0.756 GB, free: 88.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/1.028, allocations: 55.91 kB / 0.756 GB, free: 88.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003054/1.031, allocations: 1.89 MB / 0.7579 GB, free: 87.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.032, allocations: 0 / 0.7579 GB, free: 87.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004716/1.036, allocations: 0.8978 MB / 0.7588 GB, free: 87.73 MB / 458.7 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 (124): * Single equations (assignments): 117 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 16,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004985/1.037, allocations: 168.4 kB / 0.7589 GB, free: 87.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006677/1.043, allocations: 4.084 MB / 0.7629 GB, free: 86.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.043, allocations: 0 / 0.7629 GB, free: 86.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002386/1.046, allocations: 1.649 MB / 0.7645 GB, free: 85.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/1.048, allocations: 391.4 kB / 0.7649 GB, free: 85.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/1.062, allocations: 8.874 MB / 0.7736 GB, free: 77.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003061/1.065, allocations: 2.901 MB / 0.7764 GB, free: 75.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003449/1.069, allocations: 1.325 MB / 0.7777 GB, free: 74.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/1.069, allocations: 198.4 kB / 0.7779 GB, free: 74.67 MB / 458.7 MB Notification: Performance of SimCode: time 1.213e-06/1.069, allocations: 0 / 0.7779 GB, free: 74.67 MB / 458.7 MB Notification: Performance of Templates: time 0.05325/1.122, allocations: 32.24 MB / 0.8093 GB, free: 50.01 MB / 458.7 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)