Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001084/0.001084, allocations: 179.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.218/1.218, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001641/0.001641, allocations: 113.2 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003576, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08367/0.08404, allocations: 44.49 MB / 355.1 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.25/0.334, allocations: 90.74 MB / 445.8 MB, free: 15.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.3344, allocations: 93.89 kB / 445.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5154/0.8498, allocations: 159.9 MB / 0.5916 GB, free: 70.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.8498, allocations: 0 / 0.5916 GB, free: 70.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002994/0.8501, allocations: 161.2 kB / 0.5917 GB, free: 70.23 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.01762/0.8678, allocations: 8.969 MB / 0.6005 GB, free: 61.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.8678, allocations: 12.03 kB / 0.6005 GB, free: 61.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05286/0.9207, allocations: 16.47 MB / 0.6166 GB, free: 45.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02982/0.9505, allocations: 13.54 MB / 0.6298 GB, free: 31.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004324/0.951, allocations: 0.5255 MB / 0.6303 GB, free: 31.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/0.9539, allocations: 0.7299 MB / 0.631 GB, free: 30.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02722/0.9811, allocations: 16.38 MB / 0.647 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002875/0.9815, allocations: 107 kB / 0.6471 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000952/0.9824, allocations: 339.8 kB / 0.6475 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001743/0.9842, allocations: 1.484 MB / 0.6489 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1998/1.184, allocations: 12.91 MB / 0.6615 GB, free: 58.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0752/1.259, allocations: 73.31 MB / 0.7331 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01695/1.276, allocations: 7.488 MB / 0.7404 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/1.293, allocations: 11.58 MB / 0.7517 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.204e-05/1.294, allocations: 64.75 kB / 0.7518 GB, free: 8.359 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 4.859e-06/1.294, allocations: 0 / 0.7518 GB, free: 8.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=339): time 0.142/1.436, allocations: 45.85 MB / 0.7966 GB, free: 3.012 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000218/1.436, allocations: 407.9 kB / 0.7969 GB, free: 2.527 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009534/1.445, allocations: 6.235 MB / 0.803 GB, free: 12.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006807/1.446, allocations: 77.7 kB / 0.8031 GB, free: 12.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003912/1.45, allocations: 5.224 MB / 0.8082 GB, free: 7.039 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/1.452, allocations: 1.244 MB / 0.8094 GB, free: 5.805 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000414/1.452, allocations: 168 kB / 0.8096 GB, free: 5.641 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004964/1.453, allocations: 0.6533 MB / 0.8102 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005902/1.458, allocations: 3.788 MB / 0.8139 GB, free: 1.184 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1823/1.641, allocations: 8.445 MB / 0.8222 GB, free: 84.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007679/1.648, allocations: 5.503 MB / 0.8275 GB, free: 84.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.649, allocations: 44.88 kB / 0.8276 GB, free: 84.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.03422/1.683, allocations: 16.69 MB / 0.8439 GB, free: 83.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/1.683, allocations: 73.97 kB / 0.844 GB, free: 83.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/1.683, allocations: 161.2 kB / 0.8441 GB, free: 83.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01721/1.7, allocations: 5.514 MB / 0.8495 GB, free: 83.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005597/1.706, allocations: 1.789 MB / 0.8512 GB, free: 83.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03246/1.739, allocations: 28.95 MB / 0.8795 GB, free: 71.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007169/1.746, allocations: 0.5183 MB / 0.88 GB, free: 71.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/1.747, allocations: 482.9 kB / 0.8805 GB, free: 70.96 MB / 426.7 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.005947/1.753, allocations: 3.479 MB / 0.8839 GB, free: 69.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001113/1.754, allocations: 0.6545 MB / 0.8845 GB, free: 69.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01986/1.774, allocations: 10.95 MB / 0.8952 GB, free: 65.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-05/1.774, allocations: 37.3 kB / 0.8952 GB, free: 65.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.537e-05/1.774, allocations: 18.84 kB / 0.8953 GB, free: 65.85 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.108e-05/1.774, allocations: 16.45 kB / 0.8953 GB, free: 65.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04035/1.815, allocations: 23.99 MB / 0.9187 GB, free: 49.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-05/1.815, allocations: 6.312 kB / 0.9187 GB, free: 49.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.817, allocations: 429.7 kB / 0.9191 GB, free: 48.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01393/1.831, allocations: 5.099 MB / 0.9241 GB, free: 45.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006165/1.831, allocations: 60 kB / 0.9242 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02957/1.861, allocations: 27.7 MB / 0.9512 GB, free: 18.45 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.861, allocations: 8 kB / 0.9512 GB, free: 18.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02569/1.887, allocations: 16.87 MB / 0.9677 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004847/1.892, allocations: 1.267 MB / 0.9689 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002261/1.894, allocations: 63.98 kB / 0.969 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00442/1.898, allocations: 252.6 kB / 0.9692 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/1.899, allocations: 238.7 kB / 0.9694 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005568/1.9, allocations: 91.98 kB / 0.9695 GB, free: 15.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.2119/2.112, allocations: 4.519 MB / 0.9739 GB, free: 95.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.112, allocations: 0 / 0.9739 GB, free: 95.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009449/2.121, allocations: 1.961 MB / 0.9759 GB, free: 95.22 MB / 442.7 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.0006571/2.122, allocations: 224.5 kB / 0.9761 GB, free: 95.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01524/2.137, allocations: 10.12 MB / 0.986 GB, free: 94.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/2.137, allocations: 1.469 kB / 0.986 GB, free: 94.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007124/2.145, allocations: 4.486 MB / 0.9903 GB, free: 94.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005403/2.15, allocations: 0.9802 MB / 0.9913 GB, free: 94.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0375/2.187, allocations: 21.58 MB / 1.012 GB, free: 86.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009729/2.197, allocations: 5.706 MB / 1.018 GB, free: 85.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007351/2.205, allocations: 2.635 MB / 1.021 GB, free: 85.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/2.206, allocations: 397.5 kB / 1.021 GB, free: 85.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/2.206, allocations: 0 / 1.021 GB, free: 85.56 MB / 442.7 MB Notification: Performance of Templates: time 0.122/2.328, allocations: 83.88 MB / 1.103 GB, free: 30.46 MB / 442.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)