Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 196 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 51.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2421, allocations: 46.64 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02062/0.2627, allocations: 20.59 MB / 345.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.2762, allocations: 6.208 MB / 352.1 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004694/0.2809, allocations: 167.4 kB / 352.3 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01215/0.2931, allocations: 6.359 MB / 358.6 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.304, allocations: 3.455 MB / 362.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004348/0.3084, allocations: 1.662 MB / 363.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0161/0.3245, allocations: 11.68 MB / 375.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01158/0.3362, allocations: 8.084 MB / 383.5 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007411/0.3436, allocations: 3.77 MB / 387.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007485/0.3512, allocations: 4.978 MB / 392.3 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002583/0.3538, allocations: 0.75 MB / 393 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004921/0.3587, allocations: 1.705 MB / 394.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006521/0.3653, allocations: 4.392 MB / 399.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009901/0.3752, allocations: 4.67 MB / 403.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0186/0.3938, allocations: 13.87 MB / 417.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.239e-05/0.3939, allocations: 7.984 kB / 417.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3939, allocations: 0 / 417.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005739/0.3945, allocations: 0 / 417.7 MB, free: 7.23 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02734/0.4218, allocations: 10.06 MB / 427.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.4219, allocations: 8.031 kB / 427.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04828/0.4702, allocations: 5.283 MB / 433 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02068/0.4909, allocations: 8.376 MB / 441.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004309/0.4914, allocations: 448 kB / 441.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002641/0.4941, allocations: 0.6126 MB / 442.4 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3693/0.8634, allocations: 17.12 MB / 459.6 MB, free: 99.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006176/0.8641, allocations: 101.4 kB / 459.7 MB, free: 99.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001729/0.8658, allocations: 284.2 kB / 459.9 MB, free: 98.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006279/0.8721, allocations: 2.855 MB / 462.8 MB, free: 98.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0285/0.9006, allocations: 14.04 MB / 476.8 MB, free: 92.28 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07706/0.9777, allocations: 69.44 MB / 0.5335 GB, free: 23.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01748/0.9952, allocations: 7.461 MB / 0.5407 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005162/1, allocations: 4.46 MB / 0.5451 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02175/1.022, allocations: 12.76 MB / 0.5576 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.573e-05/1.022, allocations: 68.56 kB / 0.5576 GB, free: 14.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=293): time 5.45e-06/1.022, allocations: 0 / 0.5576 GB, free: 14.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=365): time 0.1634/1.186, allocations: 43.53 MB / 0.6001 GB, free: 2.629 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002216/1.186, allocations: 398.2 kB / 0.6005 GB, free: 2.152 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2214/1.407, allocations: 7.382 MB / 0.6077 GB, free: 137.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001321/1.409, allocations: 82.02 kB / 0.6078 GB, free: 137.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00416/1.413, allocations: 5.244 MB / 0.6129 GB, free: 134.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001843/1.415, allocations: 1.345 MB / 0.6142 GB, free: 133.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003068/1.418, allocations: 1.941 MB / 0.6161 GB, free: 132.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/1.418, allocations: 304.9 kB / 0.6164 GB, free: 132.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005277/1.423, allocations: 4.285 MB / 0.6206 GB, free: 131.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008109/1.431, allocations: 9.192 MB / 0.6296 GB, free: 123.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01532/1.447, allocations: 14.25 MB / 0.6435 GB, free: 112.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001572/1.447, allocations: 47.41 kB / 0.6435 GB, free: 112.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.0368/1.484, allocations: 18.01 MB / 0.6611 GB, free: 97.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002364/1.484, allocations: 76 kB / 0.6612 GB, free: 97.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002992/1.484, allocations: 168 kB / 0.6614 GB, free: 96.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01564/1.5, allocations: 5.343 MB / 0.6666 GB, free: 91.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006855/1.507, allocations: 2.012 MB / 0.6685 GB, free: 89.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03852/1.545, allocations: 31.12 MB / 0.6989 GB, free: 58.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/1.556, allocations: 0.5539 MB / 0.6995 GB, free: 57.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002395/1.558, allocations: 0.5078 MB / 0.7 GB, free: 56.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1102): * Single equations (assignments): 1096 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.009094/1.567, allocations: 3.622 MB / 0.7035 GB, free: 53.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0024/1.57, allocations: 0.6595 MB / 0.7042 GB, free: 52.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0238/1.594, allocations: 11.27 MB / 0.7152 GB, free: 41.32 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.631e-05/1.594, allocations: 36 kB / 0.7152 GB, free: 41.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.378e-05/1.594, allocations: 24.31 kB / 0.7152 GB, free: 41.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.19e-05/1.594, allocations: 15.94 kB / 0.7152 GB, free: 41.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04582/1.64, allocations: 22.17 MB / 0.7369 GB, free: 18.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.257e-05/1.64, allocations: 11.94 kB / 0.7369 GB, free: 18.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002351/1.642, allocations: 447.3 kB / 0.7373 GB, free: 18.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01468/1.657, allocations: 5.031 MB / 0.7422 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009308/1.658, allocations: 68 kB / 0.7423 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2962/1.954, allocations: 30.52 MB / 0.7721 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/1.954, allocations: 10.22 kB / 0.7721 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02599/1.98, allocations: 16.49 MB / 0.7882 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003737/1.984, allocations: 1.344 MB / 0.7895 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/1.985, allocations: 67.03 kB / 0.7896 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003471/1.989, allocations: 263.4 kB / 0.7898 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009106/1.99, allocations: 272.9 kB / 0.7901 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002689/1.99, allocations: 100.3 kB / 0.7902 GB, free: 127.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007508/1.997, allocations: 4.729 MB / 0.7948 GB, free: 125.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.997, allocations: 0 / 0.7948 GB, free: 125.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01224/2.01, allocations: 2.183 MB / 0.7969 GB, free: 125.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001311/2.011, allocations: 224.8 kB / 0.7972 GB, free: 125.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02324/2.034, allocations: 14.32 MB / 0.8112 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/2.034, allocations: 2.438 kB / 0.8112 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00597/2.04, allocations: 4.467 MB / 0.8155 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006813/2.047, allocations: 1.035 MB / 0.8165 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03382/2.081, allocations: 19.57 MB / 0.8356 GB, free: 90.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008222/2.089, allocations: 5.764 MB / 0.8413 GB, free: 84.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00741/2.097, allocations: 2.755 MB / 0.844 GB, free: 81.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/2.099, allocations: 411.4 kB / 0.8443 GB, free: 81.26 MB / 446.1 MB Notification: Performance of SimCode: time 2.545e-06/2.099, allocations: 0 / 0.8443 GB, free: 81.26 MB / 446.1 MB Notification: Performance of Templates: time 0.3996/2.498, allocations: 98.51 MB / 0.9406 GB, free: 127.9 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)