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.001407/0.001407, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 190.7 kB / 16.14 MB, free: 6.707 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.487/1.487, allocations: 205.1 MB / 222 MB, free: 4.762 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.001115/0.001115, allocations: 52.27 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2832, allocations: 46.63 MB / 324.7 MB, free: 2.141 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1004/0.3836, allocations: 111.5 MB / 436.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2907/0.6744, allocations: 21.29 MB / 457.5 MB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02538/0.6998, allocations: 0.5001 MB / 458 MB, free: 456 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.7118, allocations: 6.366 MB / 464.3 MB, free: 328 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009484/0.7213, allocations: 3.278 MB / 467.6 MB, free: 144 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004412/0.7257, allocations: 1.541 MB / 469.2 MB, free: 108 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02047/0.7462, allocations: 16.41 MB / 485.6 MB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.7573, allocations: 7.898 MB / 493.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007958/0.7653, allocations: 3.401 MB / 496.9 MB, free: 11.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.7762, allocations: 5.321 MB / 0.4904 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003262/0.7795, allocations: 0.5 MB / 0.4909 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005013/0.7846, allocations: 1.532 MB / 0.4924 GB, free: 8.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006452/0.791, allocations: 4.197 MB / 0.4965 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007962/0.799, allocations: 4.426 MB / 0.5008 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01812/0.8172, allocations: 13.65 MB / 0.5142 GB, free: 3.324 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.8172, allocations: 0 / 0.5142 GB, free: 3.324 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.8172, allocations: 0 / 0.5142 GB, free: 3.324 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005077/0.8177, allocations: 0 / 0.5142 GB, free: 3.324 MB / 414.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.02967/0.8474, allocations: 10.06 MB / 0.524 GB, free: 9.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/0.8475, allocations: 8.031 kB / 0.524 GB, free: 9.312 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04434/0.8918, allocations: 5.278 MB / 0.5291 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02338/0.9153, allocations: 8.386 MB / 0.5373 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005922/0.9159, allocations: 447.6 kB / 0.5378 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003132/0.9191, allocations: 0.608 MB / 0.5384 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03944/0.9585, allocations: 17.14 MB / 0.5551 GB, free: 9.031 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006316/0.9592, allocations: 98.73 kB / 0.5552 GB, free: 8.965 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002287/0.9615, allocations: 278.7 kB / 0.5554 GB, free: 8.742 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005053/0.9666, allocations: 2.855 MB / 0.5582 GB, free: 5.922 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03157/0.9982, allocations: 14.04 MB / 0.5719 GB, free: 8.152 MB / 478.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.5279/1.526, allocations: 69.43 MB / 0.6398 GB, free: 200.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/1.544, allocations: 7.464 MB / 0.647 GB, free: 200.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005008/1.549, allocations: 4.467 MB / 0.6514 GB, free: 198.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01743/1.567, allocations: 12.76 MB / 0.6639 GB, free: 192.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/1.567, allocations: 70.5 kB / 0.6639 GB, free: 192.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 5.871e-06/1.567, allocations: 0 / 0.6639 GB, free: 192.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=365): time 0.14/1.707, allocations: 43.52 MB / 0.7064 GB, free: 154.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/1.707, allocations: 402.3 kB / 0.7068 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01268/1.72, allocations: 7.387 MB / 0.714 GB, free: 146.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.00108/1.721, allocations: 77.7 kB / 0.7141 GB, free: 146.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003303/1.724, allocations: 5.239 MB / 0.7192 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001599/1.726, allocations: 1.352 MB / 0.7205 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002705/1.729, allocations: 1.931 MB / 0.7224 GB, free: 138 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.476e-05/1.729, allocations: 303.7 kB / 0.7227 GB, free: 137.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005015/1.734, allocations: 4.282 MB / 0.7269 GB, free: 133.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006787/1.741, allocations: 9.203 MB / 0.7359 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01909/1.76, allocations: 14.24 MB / 0.7498 GB, free: 105.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001649/1.76, allocations: 52.84 kB / 0.7498 GB, free: 105.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04472/1.805, allocations: 18.01 MB / 0.7674 GB, free: 87.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002146/1.805, allocations: 76 kB / 0.7675 GB, free: 87.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003379/1.805, allocations: 171.9 kB / 0.7677 GB, free: 87.31 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01531/1.821, allocations: 5.341 MB / 0.7729 GB, free: 81.96 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007053/1.828, allocations: 2.004 MB / 0.7748 GB, free: 79.95 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03744/1.865, allocations: 29 MB / 0.8032 GB, free: 50.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009853/1.875, allocations: 0.5539 MB / 0.8037 GB, free: 49.99 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0022/1.877, allocations: 0.5087 MB / 0.8042 GB, free: 49.48 MB / 0.5138 GB 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.008299/1.886, allocations: 3.63 MB / 0.8077 GB, free: 45.84 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/1.887, allocations: 0.6556 MB / 0.8084 GB, free: 45.17 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02079/1.908, allocations: 11.27 MB / 0.8194 GB, free: 33.83 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.756e-05/1.908, allocations: 44 kB / 0.8194 GB, free: 33.79 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.926e-05/1.908, allocations: 20 kB / 0.8194 GB, free: 33.77 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.902e-05/1.908, allocations: 15.94 kB / 0.8195 GB, free: 33.75 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04514/1.954, allocations: 22.16 MB / 0.8411 GB, free: 11.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.618e-05/1.954, allocations: 8 kB / 0.8411 GB, free: 11.35 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/1.956, allocations: 455.3 kB / 0.8415 GB, free: 10.91 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01327/1.969, allocations: 5.035 MB / 0.8465 GB, free: 5.859 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008503/1.97, allocations: 73.12 kB / 0.8465 GB, free: 5.789 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2608/2.231, allocations: 28.39 MB / 0.8743 GB, free: 211.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/2.231, allocations: 16.72 kB / 0.8743 GB, free: 211.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02787/2.259, allocations: 16.49 MB / 0.8904 GB, free: 205.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004567/2.263, allocations: 1.344 MB / 0.8917 GB, free: 205.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002553/2.266, allocations: 70.89 kB / 0.8917 GB, free: 205.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005778/2.272, allocations: 260.7 kB / 0.892 GB, free: 205.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001292/2.273, allocations: 266.6 kB / 0.8923 GB, free: 205.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004074/2.274, allocations: 105.3 kB / 0.8924 GB, free: 205.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.01007/2.284, allocations: 4.729 MB / 0.897 GB, free: 200.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.91e-07/2.284, allocations: 1.688 kB / 0.897 GB, free: 200.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0142/2.298, allocations: 2.181 MB / 0.8991 GB, free: 198.7 MB / 0.5138 GB 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.001419/2.299, allocations: 216.4 kB / 0.8993 GB, free: 198.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01728/2.317, allocations: 10.85 MB / 0.9099 GB, free: 187.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/2.317, allocations: 0 / 0.9099 GB, free: 187.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007051/2.324, allocations: 4.474 MB / 0.9143 GB, free: 183.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008031/2.332, allocations: 0.9683 MB / 0.9152 GB, free: 182.3 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03807/2.37, allocations: 23.31 MB / 0.938 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008071/2.378, allocations: 5.768 MB / 0.9436 GB, free: 153.5 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007687/2.386, allocations: 2.745 MB / 0.9463 GB, free: 150.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/2.387, allocations: 415.4 kB / 0.9467 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of SimCode: time 1.062e-06/2.388, allocations: 0 / 0.9467 GB, free: 150.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.1563/2.544, allocations: 94.76 MB / 1.039 GB, free: 55.57 MB / 0.5138 GB 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)