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.001301/0.001301, allocations: 169.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0009543/0.0009544, allocations: 88.11 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03694/0.03694, allocations: 8.83 MB / 340.1 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.934e-05/1.95e-05, allocations: 2.219 kB / 398.7 MB, free: 47.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 52.39 MB / 451.1 MB, free: 4.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.4627, allocations: 86.8 MB / 0.5253 GB, free: 80.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4629, allocations: 75.12 kB / 0.5253 GB, free: 80.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1549/0.6179, allocations: 68.23 MB / 0.592 GB, free: 22.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6179, allocations: 0 / 0.592 GB, free: 22.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001515/0.6181, allocations: 60 kB / 0.592 GB, free: 22.81 MB / 362.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.0143/0.6324, allocations: 3.709 MB / 0.5956 GB, free: 19.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.6325, allocations: 8.031 kB / 0.5956 GB, free: 19.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/0.6428, allocations: 1.98 MB / 0.5976 GB, free: 17.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005765/0.6486, allocations: 1.86 MB / 0.5994 GB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.6489, allocations: 104 kB / 0.5995 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00234/0.6513, allocations: 195.9 kB / 0.5997 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0102/0.6615, allocations: 5.807 MB / 0.6054 GB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.6777, allocations: 7.789 MB / 0.613 GB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002112/0.6779, allocations: 27.75 kB / 0.613 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00159/0.6796, allocations: 16 kB / 0.613 GB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001636/0.6812, allocations: 0.998 MB / 0.614 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05155/0.7328, allocations: 28.49 MB / 0.6418 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004267/0.7371, allocations: 2.455 MB / 0.6442 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.7387, allocations: 0.8453 MB / 0.645 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008915/0.7476, allocations: 4.842 MB / 0.6498 GB, free: 9.797 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.7477, allocations: 43.88 kB / 0.6498 GB, free: 9.746 MB / 410.7 MB Notification: Performance of pre-optimization done (n=146): time 6.973e-06/0.7477, allocations: 7.875 kB / 0.6498 GB, free: 9.738 MB / 410.7 MB Notification: Performance of matching and sorting (n=188): time 0.01754/0.7653, allocations: 7.601 MB / 0.6572 GB, free: 2.043 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.7653, allocations: 68.72 kB / 0.6573 GB, free: 1.965 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004666/0.77, allocations: 2.174 MB / 0.6594 GB, free: 15.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.7702, allocations: 25.7 kB / 0.6594 GB, free: 15.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001927/0.7721, allocations: 2.448 MB / 0.6618 GB, free: 13.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007373/0.7729, allocations: 0.6705 MB / 0.6625 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003528/0.7732, allocations: 0 / 0.6625 GB, free: 12.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004847/0.7737, allocations: 0.5603 MB / 0.663 GB, free: 12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.7762, allocations: 1.423 MB / 0.6644 GB, free: 10.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004464/0.7807, allocations: 4.108 MB / 0.6684 GB, free: 5.117 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003936/0.7846, allocations: 2.444 MB / 0.6708 GB, free: 2.672 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/0.7848, allocations: 28 kB / 0.6708 GB, free: 2.645 MB / 426.7 MB Notification: Performance of matching and sorting (n=643) (initialization): time 0.02008/0.8049, allocations: 5.46 MB / 0.6762 GB, free: 13.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-05/0.805, allocations: 44.09 kB / 0.6762 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.8051, allocations: 99.94 kB / 0.6763 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.8064, allocations: 0.5621 MB / 0.6769 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003772/0.8102, allocations: 1.061 MB / 0.6779 GB, free: 11.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.8204, allocations: 8.108 MB / 0.6858 GB, free: 2.918 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/0.8243, allocations: 155.8 kB / 0.686 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009357/0.8253, allocations: 292.3 kB / 0.6862 GB, free: 2.48 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pistonRod.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 434 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (576): * Single equations (assignments): 569 * 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.0007618/0.826, allocations: 353.6 kB / 0.6866 GB, free: 2.125 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.8265, allocations: 229.1 kB / 0.6868 GB, free: 1.898 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2672/1.094, allocations: 2.541 MB / 0.6893 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001291/1.094, allocations: 33.33 kB / 0.6893 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.094, allocations: 6.625 kB / 0.6893 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.284e-05/1.094, allocations: 7.641 kB / 0.6893 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01837/1.112, allocations: 7.988 MB / 0.6971 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.112, allocations: 2.031 kB / 0.6971 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/1.113, allocations: 197.7 kB / 0.6973 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/1.114, allocations: 0.5511 MB / 0.6979 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.85e-05/1.115, allocations: 12.98 kB / 0.6979 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008531/1.123, allocations: 8.237 MB / 0.7059 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004788/1.128, allocations: 5.427 MB / 0.7112 GB, free: 99.74 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005058/1.133, allocations: 3.807 MB / 0.7149 GB, free: 99.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007533/1.134, allocations: 302.8 kB / 0.7152 GB, free: 99.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/1.134, allocations: 6.375 kB / 0.7152 GB, free: 99.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008644/1.135, allocations: 56.95 kB / 0.7153 GB, free: 99.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/1.135, allocations: 131.1 kB / 0.7154 GB, free: 99.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.29e-05/1.135, allocations: 52.73 kB / 0.7155 GB, free: 99.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002046/1.137, allocations: 1.438 MB / 0.7169 GB, free: 99.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/1.137, allocations: 2.906 kB / 0.7169 GB, free: 99.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003811/1.141, allocations: 0.7672 MB / 0.7176 GB, free: 99.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 108 * 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.000357/1.142, allocations: 143.4 kB / 0.7177 GB, free: 99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004797/1.146, allocations: 3.801 MB / 0.7215 GB, free: 98.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.146, allocations: 0 / 0.7215 GB, free: 98.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/1.148, allocations: 1.489 MB / 0.7229 GB, free: 98.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/1.15, allocations: 231.1 kB / 0.7231 GB, free: 98.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.16, allocations: 5.922 MB / 0.7289 GB, free: 95.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/1.162, allocations: 2.896 MB / 0.7317 GB, free: 94.61 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00335/1.166, allocations: 1.296 MB / 0.733 GB, free: 94.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/1.166, allocations: 184.6 kB / 0.7332 GB, free: 94.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/1.166, allocations: 3.312 kB / 0.7332 GB, free: 94.56 MB / 442.7 MB Notification: Performance of Templates: time 0.04348/1.21, allocations: 26.24 MB / 0.7588 GB, free: 82.86 MB / 442.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)