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.001282/0.001282, allocations: 179.2 kB / 16.12 MB, free: 5.57 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.388/1.388, allocations: 223.3 MB / 240.1 MB, free: 11.71 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.0007704/0.0007703, allocations: 105.8 kB / 291.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04047/0.04047, allocations: 8.943 MB / 351.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.0003379, allocations: 16 kB / 414.4 MB, free: 56.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 52.39 MB / 466.8 MB, free: 4.398 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3249/0.4262, allocations: 87.58 MB / 0.5414 GB, free: 13.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.4265, allocations: 77.41 kB / 0.5415 GB, free: 13.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1766/0.603, allocations: 69.56 MB / 0.6094 GB, free: 10.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6031, allocations: 0 / 0.6094 GB, free: 10.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001464/0.6032, allocations: 64 kB / 0.6094 GB, free: 10.05 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.01582/0.6191, allocations: 3.666 MB / 0.613 GB, free: 6.324 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.6191, allocations: 12.03 kB / 0.613 GB, free: 6.312 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009557/0.6287, allocations: 1.985 MB / 0.615 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00597/0.6347, allocations: 1.889 MB / 0.6168 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004658/0.6352, allocations: 246.5 kB / 0.6171 GB, free: 2.145 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002179/0.6374, allocations: 331.8 kB / 0.6174 GB, free: 1.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02268/0.6601, allocations: 8.511 MB / 0.6257 GB, free: 8.855 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002201/0.6604, allocations: 31.72 kB / 0.6257 GB, free: 8.824 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00208/0.6625, allocations: 159.8 kB / 0.6259 GB, free: 8.668 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00176/0.6643, allocations: 0.9942 MB / 0.6268 GB, free: 7.672 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01816/0.6825, allocations: 7.826 MB / 0.6345 GB, free: 15.84 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2726/0.9551, allocations: 28.48 MB / 0.6623 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006988/0.9622, allocations: 2.824 MB / 0.665 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.9639, allocations: 0.9722 MB / 0.666 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009755/0.9737, allocations: 6.451 MB / 0.6723 GB, free: 96.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.9737, allocations: 46.59 kB / 0.6723 GB, free: 96.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 4.929e-06/0.9737, allocations: 0 / 0.6723 GB, free: 96.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.01762/0.9914, allocations: 6.652 MB / 0.6788 GB, free: 95.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.9915, allocations: 69.31 kB / 0.6789 GB, free: 95.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/0.9961, allocations: 2.964 MB / 0.6818 GB, free: 95.45 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003524/0.9965, allocations: 53.33 kB / 0.6818 GB, free: 95.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001724/0.9982, allocations: 2.352 MB / 0.6841 GB, free: 94.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009538/0.9992, allocations: 0.7022 MB / 0.6848 GB, free: 93.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/0.9994, allocations: 93.98 kB / 0.6849 GB, free: 93.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.9996, allocations: 0.5008 MB / 0.6854 GB, free: 93.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002313/1.002, allocations: 1.459 MB / 0.6868 GB, free: 93.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003458/1.005, allocations: 4.042 MB / 0.6908 GB, free: 90.15 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005961/1.011, allocations: 5.977 MB / 0.6966 GB, free: 86.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.158e-05/1.012, allocations: 30.61 kB / 0.6966 GB, free: 86.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.01013/1.022, allocations: 5.886 MB / 0.7024 GB, free: 85.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.298e-05/1.022, allocations: 42.69 kB / 0.7024 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/1.022, allocations: 92.16 kB / 0.7025 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/1.023, allocations: 0.5498 MB / 0.7031 GB, free: 85.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00299/1.026, allocations: 0.997 MB / 0.704 GB, free: 85.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008083/1.034, allocations: 8.387 MB / 0.7122 GB, free: 79.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004264/1.039, allocations: 229.4 kB / 0.7124 GB, free: 79.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008331/1.039, allocations: 274.1 kB / 0.7127 GB, free: 79.34 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 (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.003453/1.043, allocations: 1.726 MB / 0.7144 GB, free: 78.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005999/1.043, allocations: 268.1 kB / 0.7146 GB, free: 78.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/1.047, allocations: 2.619 MB / 0.7172 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.285e-05/1.047, allocations: 34.5 kB / 0.7172 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/1.047, allocations: 10.03 kB / 0.7172 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/1.047, allocations: 12.84 kB / 0.7173 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/1.058, allocations: 7.28 MB / 0.7244 GB, free: 74.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/1.058, allocations: 6.656 kB / 0.7244 GB, free: 74.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008169/1.059, allocations: 234.4 kB / 0.7246 GB, free: 74.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009493/1.06, allocations: 431.3 kB / 0.725 GB, free: 74.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.562e-05/1.06, allocations: 33.47 kB / 0.725 GB, free: 74.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006161/1.067, allocations: 7.215 MB / 0.7321 GB, free: 69.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.067, allocations: 11.62 kB / 0.7321 GB, free: 69 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005304/1.072, allocations: 3.94 MB / 0.7359 GB, free: 67.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/1.073, allocations: 356.9 kB / 0.7363 GB, free: 67.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/1.073, allocations: 33.25 kB / 0.7363 GB, free: 67.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009226/1.074, allocations: 80.83 kB / 0.7364 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/1.074, allocations: 128.8 kB / 0.7365 GB, free: 66.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-05/1.075, allocations: 54.38 kB / 0.7366 GB, free: 66.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002753/1.077, allocations: 1.879 MB / 0.7384 GB, free: 66.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.415e-06/1.077, allocations: 2.781 kB / 0.7384 GB, free: 66.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005057/1.082, allocations: 0.8393 MB / 0.7392 GB, free: 65.87 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 () * Number of clocked 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.0004649/1.083, allocations: 174.3 kB / 0.7394 GB, free: 65.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005905/1.089, allocations: 4.009 MB / 0.7433 GB, free: 62.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.089, allocations: 4 kB / 0.7433 GB, free: 62.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/1.091, allocations: 1.536 MB / 0.7448 GB, free: 60.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/1.094, allocations: 421.4 kB / 0.7452 GB, free: 60.37 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/1.107, allocations: 8.64 MB / 0.7536 GB, free: 52.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/1.11, allocations: 2.795 MB / 0.7564 GB, free: 50.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003287/1.113, allocations: 1.326 MB / 0.7577 GB, free: 49.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/1.114, allocations: 189.9 kB / 0.7579 GB, free: 49.12 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/1.114, allocations: 7.938 kB / 0.7579 GB, free: 49.11 MB / 458.7 MB Notification: Performance of Templates: time 0.04509/1.159, allocations: 29.89 MB / 0.787 GB, free: 23.38 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)