Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009673/0.0009675, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.173/1.173, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007728/0.0007728, allocations: 95.2 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03785/0.03785, allocations: 8.838 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.999e-05, allocations: 4 kB / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06848/0.06852, allocations: 52.39 MB / 457.9 MB, free: 9.051 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2848/0.3533, allocations: 87.48 MB / 0.5326 GB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001738/0.3535, allocations: 74.97 kB / 0.5327 GB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1664/0.5199, allocations: 70.2 MB / 0.6013 GB, free: 14.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.52, allocations: 0 / 0.6013 GB, free: 14.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001107/0.5201, allocations: 59.94 kB / 0.6013 GB, free: 14.11 MB / 426.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.01188/0.532, allocations: 3.713 MB / 0.605 GB, free: 10.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.532, allocations: 12.03 kB / 0.605 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009262/0.5413, allocations: 1.976 MB / 0.6069 GB, free: 8.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00443/0.5458, allocations: 1.86 MB / 0.6087 GB, free: 6.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.546, allocations: 258.4 kB / 0.609 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/0.5473, allocations: 331.8 kB / 0.6093 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/0.5624, allocations: 8.465 MB / 0.6175 GB, free: 12.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/0.5626, allocations: 27.72 kB / 0.6176 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005146/0.5631, allocations: 147.9 kB / 0.6177 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001426/0.5645, allocations: 0.9981 MB / 0.6187 GB, free: 11.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.5784, allocations: 7.757 MB / 0.6263 GB, free: 4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2264/0.8049, allocations: 28.49 MB / 0.6541 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005969/0.8109, allocations: 2.778 MB / 0.6568 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.8122, allocations: 0.9525 MB / 0.6577 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007781/0.82, allocations: 6.471 MB / 0.6641 GB, free: 97.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.82, allocations: 47 kB / 0.6641 GB, free: 97.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 3.627e-06/0.82, allocations: 3.469 kB / 0.6641 GB, free: 97.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.01229/0.8323, allocations: 5.457 MB / 0.6694 GB, free: 96.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.8324, allocations: 73.94 kB / 0.6695 GB, free: 96.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003412/0.8358, allocations: 2.627 MB / 0.6721 GB, free: 96.39 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.276e-05/0.8359, allocations: 50.3 kB / 0.6721 GB, free: 96.36 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009117/0.8368, allocations: 2.355 MB / 0.6744 GB, free: 95.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003867/0.8372, allocations: 0.713 MB / 0.6751 GB, free: 94.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.8374, allocations: 90.66 kB / 0.6752 GB, free: 94.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.8376, allocations: 0.5004 MB / 0.6757 GB, free: 94.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.8392, allocations: 1.415 MB / 0.6771 GB, free: 94.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.8416, allocations: 3.979 MB / 0.681 GB, free: 91.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/0.8442, allocations: 2.392 MB / 0.6833 GB, free: 91.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.528e-05/0.8443, allocations: 26.56 kB / 0.6833 GB, free: 91.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.007021/0.8513, allocations: 5.794 MB / 0.689 GB, free: 90.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.8514, allocations: 44.66 kB / 0.689 GB, free: 90.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-05/0.8514, allocations: 92.81 kB / 0.6891 GB, free: 90.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.8526, allocations: 0.5571 MB / 0.6896 GB, free: 90.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.855, allocations: 0.9981 MB / 0.6906 GB, free: 90.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007314/0.8623, allocations: 8.347 MB / 0.6988 GB, free: 85.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/0.8653, allocations: 236.5 kB / 0.699 GB, free: 85.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002957/0.8656, allocations: 273.8 kB / 0.6993 GB, free: 85.74 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 539 * 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 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004413/0.8661, allocations: 460.9 kB / 0.6997 GB, free: 85.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002556/0.8663, allocations: 262.1 kB / 0.6999 GB, free: 85.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/0.8697, allocations: 2.587 MB / 0.7025 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.862e-05/0.8698, allocations: 31.67 kB / 0.7025 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.8698, allocations: 6.5 kB / 0.7025 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.8698, allocations: 7.547 kB / 0.7025 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009462/0.8793, allocations: 7.241 MB / 0.7096 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.8793, allocations: 3.594 kB / 0.7096 GB, free: 81.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007671/0.8801, allocations: 238.5 kB / 0.7098 GB, free: 81.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000855/0.8809, allocations: 422.9 kB / 0.7102 GB, free: 81.33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.292e-05/0.881, allocations: 35.47 kB / 0.7103 GB, free: 81.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005588/0.8866, allocations: 7.203 MB / 0.7173 GB, free: 76.09 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.8867, allocations: 7.875 kB / 0.7173 GB, free: 76.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004583/0.8913, allocations: 4.229 MB / 0.7214 GB, free: 73.98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006574/0.8919, allocations: 361.6 kB / 0.7218 GB, free: 73.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.8922, allocations: 37.17 kB / 0.7218 GB, free: 73.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008589/0.8931, allocations: 76.72 kB / 0.7219 GB, free: 73.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.8933, allocations: 130.7 kB / 0.722 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.969e-05/0.8934, allocations: 58.8 kB / 0.7221 GB, free: 73.62 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0021/0.8955, allocations: 1.848 MB / 0.7239 GB, free: 72.92 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.8955, allocations: 0 / 0.7239 GB, free: 72.92 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003121/0.8986, allocations: 0.8271 MB / 0.7247 GB, free: 72.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 127 * 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 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003098/0.8989, allocations: 181.1 kB / 0.7248 GB, free: 72.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004527/0.9035, allocations: 3.935 MB / 0.7287 GB, free: 70.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.9035, allocations: 0 / 0.7287 GB, free: 70.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.905, allocations: 1.492 MB / 0.7301 GB, free: 69.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/0.9067, allocations: 399.8 kB / 0.7305 GB, free: 68.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00799/0.9147, allocations: 5.876 MB / 0.7363 GB, free: 63.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/0.917, allocations: 2.881 MB / 0.7391 GB, free: 61.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002788/0.9198, allocations: 1.322 MB / 0.7404 GB, free: 60.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/0.9202, allocations: 194.8 kB / 0.7406 GB, free: 60.28 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/0.9202, allocations: 0 / 0.7406 GB, free: 60.28 MB / 458.7 MB Notification: Performance of Templates: time 0.04113/0.9613, allocations: 29.77 MB / 0.7696 GB, free: 36.58 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)