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.001469/0.001469, allocations: 156.2 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.247/1.247, allocations: 170.7 MB / 178.7 MB, free: 7.047 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.001566/0.001566, allocations: 100.5 kB / 218 MB, free: 15.35 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.136e-05/2.139e-05, allocations: 8 kB / 262.2 MB, free: 3.07 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2312, allocations: 38.77 MB / 301 MB, free: 39.12 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3391, allocations: 84.24 MB / 385.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.3394, allocations: 84.45 kB / 385.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5679/0.9073, allocations: 156.9 MB / 0.5295 GB, free: 8.523 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.9073, allocations: 4 kB / 0.5295 GB, free: 8.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0008668/0.9082, allocations: 163.9 kB / 0.5296 GB, free: 8.359 MB / 330.7 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.02475/0.933, allocations: 7.873 MB / 0.5373 GB, free: 416 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.933, allocations: 11.97 kB / 0.5373 GB, free: 404 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4291/1.362, allocations: 16.49 MB / 0.5535 GB, free: 42.04 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02888/1.391, allocations: 13.45 MB / 0.5666 GB, free: 41.5 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003109/1.391, allocations: 228.6 kB / 0.5668 GB, free: 41.5 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00256/1.394, allocations: 455 kB / 0.5672 GB, free: 41.48 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0188/1.413, allocations: 9.461 MB / 0.5765 GB, free: 41.45 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02666/1.44, allocations: 14.26 MB / 0.5904 GB, free: 37.89 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003667/1.44, allocations: 109.6 kB / 0.5905 GB, free: 37.88 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008941/1.441, allocations: 40.94 kB / 0.5906 GB, free: 37.88 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001665/1.443, allocations: 1.484 MB / 0.592 GB, free: 37.86 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07843/1.521, allocations: 71.21 MB / 0.6615 GB, free: 4.578 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007187/1.528, allocations: 5.318 MB / 0.6667 GB, free: 1.66 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01236/1.541, allocations: 4.479 MB / 0.6711 GB, free: 15.68 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001186/1.542, allocations: 0.8361 MB / 0.6719 GB, free: 14.8 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.096e-05/1.542, allocations: 64.44 kB / 0.672 GB, free: 14.72 MB / 378.8 MB Notification: Performance of pre-optimization done (n=287): time 7.634e-06/1.542, allocations: 0 / 0.672 GB, free: 14.72 MB / 378.8 MB Notification: Performance of matching and sorting (n=347): time 0.3342/1.876, allocations: 40.44 MB / 0.7115 GB, free: 69.32 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/1.876, allocations: 400.4 kB / 0.7119 GB, free: 68.88 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01338/1.89, allocations: 5.452 MB / 0.7172 GB, free: 68.41 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008761/1.891, allocations: 27.23 kB / 0.7172 GB, free: 68.38 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004448/1.895, allocations: 5.25 MB / 0.7223 GB, free: 65.85 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001981/1.897, allocations: 1.233 MB / 0.7235 GB, free: 65.1 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001232/1.898, allocations: 1.375 kB / 0.7235 GB, free: 65.1 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0008962/1.899, allocations: 0.6653 MB / 0.7242 GB, free: 64.77 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005917/1.905, allocations: 3.627 MB / 0.7277 GB, free: 64.75 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008466/1.914, allocations: 8.378 MB / 0.7359 GB, free: 58.62 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008075/1.922, allocations: 5.401 MB / 0.7412 GB, free: 58.57 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002657/1.922, allocations: 50.34 kB / 0.7412 GB, free: 58.57 MB / 378.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.03682/1.959, allocations: 15.62 MB / 0.7565 GB, free: 56.13 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003392/1.959, allocations: 79.94 kB / 0.7566 GB, free: 56.13 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004272/1.96, allocations: 163.4 kB / 0.7567 GB, free: 56.13 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01609/1.976, allocations: 5.373 MB / 0.762 GB, free: 55.16 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006485/1.982, allocations: 1.849 MB / 0.7638 GB, free: 54.94 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03321/2.016, allocations: 25.96 MB / 0.7891 GB, free: 34.21 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0083/2.024, allocations: 369.5 kB / 0.7895 GB, free: 33.94 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/2.026, allocations: 491.2 kB / 0.7899 GB, free: 33.46 MB / 378.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (976): * Single equations (assignments): 970 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00261/2.028, allocations: 0.5411 MB / 0.7905 GB, free: 32.93 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001826/2.03, allocations: 0.6209 MB / 0.7911 GB, free: 32.3 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02822/2.059, allocations: 10.58 MB / 0.8014 GB, free: 24.22 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.947e-05/2.059, allocations: 41.03 kB / 0.8015 GB, free: 24.18 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.168e-05/2.059, allocations: 20 kB / 0.8015 GB, free: 24.16 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/2.059, allocations: 17.44 kB / 0.8015 GB, free: 24.16 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2499/2.309, allocations: 22.81 MB / 0.8238 GB, free: 60 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-05/2.309, allocations: 11.45 kB / 0.8238 GB, free: 60 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002023/2.311, allocations: 443.4 kB / 0.8242 GB, free: 60 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01458/2.326, allocations: 5.023 MB / 0.8291 GB, free: 59.96 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006174/2.326, allocations: 7.344 kB / 0.8291 GB, free: 59.96 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03011/2.356, allocations: 24.69 MB / 0.8532 GB, free: 56.24 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/2.356, allocations: 10.53 kB / 0.8532 GB, free: 56.24 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02722/2.384, allocations: 16.52 MB / 0.8694 GB, free: 53.86 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003397/2.387, allocations: 1.228 MB / 0.8706 GB, free: 53.5 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/2.388, allocations: 17.06 kB / 0.8706 GB, free: 53.5 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/2.392, allocations: 202.2 kB / 0.8708 GB, free: 53.5 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007008/2.392, allocations: 246 kB / 0.871 GB, free: 53.46 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002646/2.393, allocations: 93.66 kB / 0.8711 GB, free: 53.44 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.006858/2.399, allocations: 3.81 MB / 0.8748 GB, free: 52.09 MB / 378.8 MB Notification: Performance of sort global known variables: time 7.61e-07/2.399, allocations: 0 / 0.8748 GB, free: 52.09 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.009881/2.409, allocations: 1.734 MB / 0.8765 GB, free: 52.09 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 216 * 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.0006714/2.41, allocations: 165.3 kB / 0.8767 GB, free: 52 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01356/2.424, allocations: 9.599 MB / 0.886 GB, free: 48.62 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/2.424, allocations: 0 / 0.886 GB, free: 48.62 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0066/2.43, allocations: 4.342 MB / 0.8903 GB, free: 46.78 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005459/2.436, allocations: 0.847 MB / 0.8911 GB, free: 46.48 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02944/2.465, allocations: 15.59 MB / 0.9063 GB, free: 39.55 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005785/2.471, allocations: 5.712 MB / 0.9119 GB, free: 35.41 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.006319/2.477, allocations: 2.699 MB / 0.9145 GB, free: 33.85 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009243/2.478, allocations: 381.3 kB / 0.9149 GB, free: 33.48 MB / 378.8 MB Notification: Performance of SimCode: time 7.71e-07/2.478, allocations: 3 kB / 0.9149 GB, free: 33.48 MB / 378.8 MB Notification: Performance of Templates: time 0.3266/2.805, allocations: 76.33 MB / 0.9894 GB, free: 71.81 MB / 394.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)