Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007365/0.007366, allocations: 165.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.226/1.226, allocations: 170.8 MB / 186.6 MB, free: 1.141 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001559/0.001558, allocations: 119.3 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004033, allocations: 8 kB / 274.1 MB, free: 10.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2322, allocations: 38.77 MB / 312.9 MB, free: 38.73 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.3451, allocations: 85 MB / 397.9 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/0.3455, allocations: 83.95 kB / 398 MB, free: 5.441 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8993/1.245, allocations: 159.9 MB / 0.5448 GB, free: 34.84 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.044e-06/1.245, allocations: 0 / 0.5448 GB, free: 34.84 MB / 346.8 MB Notification: Performance of Transformations before backend: time 0.0006293/1.246, allocations: 159.8 kB / 0.5449 GB, free: 34.84 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03205/1.278, allocations: 8.973 MB / 0.5537 GB, free: 33.15 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.278, allocations: 18.36 kB / 0.5537 GB, free: 33.15 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05916/1.337, allocations: 16.46 MB / 0.5698 GB, free: 32.61 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03143/1.368, allocations: 13.54 MB / 0.583 GB, free: 31.49 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005634/1.369, allocations: 0.5343 MB / 0.5835 GB, free: 31.48 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003448/1.372, allocations: 0.7198 MB / 0.5842 GB, free: 31.46 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03929/1.412, allocations: 16.38 MB / 0.6002 GB, free: 27.87 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005914/1.412, allocations: 116.5 kB / 0.6003 GB, free: 27.86 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002418/1.415, allocations: 332.9 kB / 0.6007 GB, free: 27.86 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002184/1.417, allocations: 1.486 MB / 0.6021 GB, free: 27.84 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02868/1.446, allocations: 12.91 MB / 0.6147 GB, free: 26.05 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3591/1.805, allocations: 73.3 MB / 0.6863 GB, free: 24.69 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01872/1.824, allocations: 7.498 MB / 0.6936 GB, free: 24 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02122/1.845, allocations: 11.57 MB / 0.7049 GB, free: 22.25 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/1.845, allocations: 66.62 kB / 0.705 GB, free: 22.21 MB / 378.8 MB Notification: Performance of pre-optimization done (n=280): time 6.432e-06/1.845, allocations: 0 / 0.705 GB, free: 22.21 MB / 378.8 MB Notification: Performance of matching and sorting (n=339): time 0.1588/2.004, allocations: 45.54 MB / 0.7495 GB, free: 17.25 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/2.004, allocations: 395.7 kB / 0.7498 GB, free: 16.81 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0176/2.022, allocations: 6.246 MB / 0.7559 GB, free: 16.33 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001256/2.023, allocations: 73.58 kB / 0.756 GB, free: 16.3 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005928/2.029, allocations: 5.224 MB / 0.7611 GB, free: 13.95 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00228/2.031, allocations: 1.249 MB / 0.7623 GB, free: 13.07 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00175/2.033, allocations: 167.1 kB / 0.7625 GB, free: 13.04 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.001102/2.034, allocations: 0.6468 MB / 0.7631 GB, free: 12.61 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006673/2.041, allocations: 3.796 MB / 0.7668 GB, free: 9.715 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009295/2.05, allocations: 8.441 MB / 0.7751 GB, free: 15.82 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/2.061, allocations: 5.502 MB / 0.7804 GB, free: 10.98 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002919/2.061, allocations: 48 kB / 0.7805 GB, free: 10.94 MB / 394.8 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04623/2.108, allocations: 16.73 MB / 0.7968 GB, free: 14.05 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003845/2.108, allocations: 79.92 kB / 0.7969 GB, free: 13.98 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006109/2.109, allocations: 164 kB / 0.797 GB, free: 13.82 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01894/2.128, allocations: 5.516 MB / 0.8024 GB, free: 10 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007392/2.135, allocations: 1.786 MB / 0.8042 GB, free: 8.453 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04882/2.184, allocations: 29.16 MB / 0.8327 GB, free: 12.93 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009941/2.194, allocations: 0.5149 MB / 0.8332 GB, free: 12.41 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002567/2.196, allocations: 479.8 kB / 0.8336 GB, free: 11.95 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * Array equations: 3 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01096/2.207, allocations: 3.48 MB / 0.837 GB, free: 8.461 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00261/2.21, allocations: 0.6556 MB / 0.8377 GB, free: 7.797 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2826/2.493, allocations: 10.95 MB / 0.8483 GB, free: 113.1 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-05/2.493, allocations: 38.69 kB / 0.8484 GB, free: 113.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-05/2.493, allocations: 22.25 kB / 0.8484 GB, free: 113.1 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.948e-05/2.493, allocations: 19.69 kB / 0.8484 GB, free: 113.1 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05533/2.548, allocations: 23.99 MB / 0.8718 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.515e-05/2.548, allocations: 3.812 kB / 0.8718 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/2.551, allocations: 428.3 kB / 0.8723 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01633/2.567, allocations: 5.094 MB / 0.8772 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007741/2.568, allocations: 67.58 kB / 0.8773 GB, free: 110.2 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03399/2.602, allocations: 27.69 MB / 0.9043 GB, free: 103.3 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/2.602, allocations: 8.969 kB / 0.9044 GB, free: 103.3 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02919/2.631, allocations: 16.86 MB / 0.9208 GB, free: 96.41 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005039/2.636, allocations: 1.266 MB / 0.9221 GB, free: 96.05 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002527/2.639, allocations: 61.31 kB / 0.9221 GB, free: 96.01 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004646/2.643, allocations: 252.1 kB / 0.9224 GB, free: 95.97 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009342/2.644, allocations: 243.9 kB / 0.9226 GB, free: 95.93 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002928/2.645, allocations: 88.17 kB / 0.9227 GB, free: 95.91 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00943/2.654, allocations: 4.522 MB / 0.9271 GB, free: 94.45 MB / 442.8 MB Notification: Performance of sort global known variables: time 2.5e-07/2.654, allocations: 3.875 kB / 0.9271 GB, free: 94.45 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01245/2.667, allocations: 1.959 MB / 0.929 GB, free: 94.25 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.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 (214): * Single equations (assignments): 208 * Array equations: 3 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00131/2.668, allocations: 219.8 kB / 0.9292 GB, free: 94.12 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01731/2.685, allocations: 10.13 MB / 0.9391 GB, free: 90.64 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/2.685, allocations: 3.625 kB / 0.9391 GB, free: 90.64 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007582/2.693, allocations: 4.481 MB / 0.9435 GB, free: 87.3 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006648/2.7, allocations: 0.9852 MB / 0.9445 GB, free: 86.51 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03679/2.737, allocations: 21.59 MB / 0.9655 GB, free: 67.14 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007624/2.744, allocations: 5.711 MB / 0.9711 GB, free: 63.01 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.007558/2.752, allocations: 2.632 MB / 0.9737 GB, free: 61.37 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/2.753, allocations: 397.6 kB / 0.9741 GB, free: 60.99 MB / 442.8 MB Notification: Performance of SimCode: time 1.603e-06/2.753, allocations: 0 / 0.9741 GB, free: 60.99 MB / 442.8 MB Notification: Performance of Templates: time 0.3997/3.153, allocations: 83.87 MB / 1.056 GB, free: 103.7 MB / 442.8 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)