Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.01082/0.01082, allocations: 101.2 kB / 15.73 MB, free: 6.031 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.002212/0.002213, allocations: 194.8 kB / 16.67 MB, free: 5.969 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.563/1.563, allocations: 205.1 MB / 222.6 MB, free: 4.535 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.001249/0.001249, allocations: 54.92 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 46.61 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02339/0.1306, allocations: 20.59 MB / 393.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.1471, allocations: 6.219 MB / 400 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005733/0.1529, allocations: 167.4 kB / 400.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01322/0.1661, allocations: 6.363 MB / 406.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.1776, allocations: 3.443 MB / 410 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004824/0.1824, allocations: 1.669 MB / 411.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01879/0.2012, allocations: 11.65 MB / 423.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01333/0.2146, allocations: 8.08 MB / 431.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008617/0.2233, allocations: 3.782 MB / 435.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01017/0.2335, allocations: 4.997 MB / 440.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00379/0.2373, allocations: 0.75 MB / 440.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00612/0.2435, allocations: 1.705 MB / 442.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00714/0.2506, allocations: 4.485 MB / 447.1 MB, free: 7.098 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009779/0.2605, allocations: 4.67 MB / 451.8 MB, free: 2.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2762/0.5367, allocations: 14.21 MB / 466 MB, free: 22.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/0.5368, allocations: 1.156 kB / 466 MB, free: 22.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.5368, allocations: 0 / 466 MB, free: 22.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007677/0.5376, allocations: 1.969 kB / 466 MB, free: 22.73 MB / 382.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.04018/0.5778, allocations: 10.06 MB / 476 MB, free: 19.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.5778, allocations: 13.12 kB / 476.1 MB, free: 19.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05049/0.6283, allocations: 5.279 MB / 481.3 MB, free: 18.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02559/0.654, allocations: 8.556 MB / 489.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006329/0.6547, allocations: 448.1 kB / 490.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004703/0.6594, allocations: 0.6077 MB / 490.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03795/0.6973, allocations: 17.14 MB / 0.4962 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003735/0.6978, allocations: 95.48 kB / 0.4963 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00156/0.6993, allocations: 284.3 kB / 0.4965 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003783/0.7031, allocations: 2.858 MB / 0.4993 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03281/0.736, allocations: 14.03 MB / 0.513 GB, free: 3.531 MB / 398.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.1097/0.8457, allocations: 69.1 MB / 0.5805 GB, free: 13.28 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/0.8648, allocations: 7.475 MB / 0.5878 GB, free: 5.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006089/0.871, allocations: 4.455 MB / 0.5922 GB, free: 1.211 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02399/0.895, allocations: 12.75 MB / 0.6046 GB, free: 4.246 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/0.8951, allocations: 68.56 kB / 0.6047 GB, free: 4.172 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 6.483e-06/0.8951, allocations: 0 / 0.6047 GB, free: 4.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.4063/1.301, allocations: 43.52 MB / 0.6472 GB, free: 194.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/1.302, allocations: 404.5 kB / 0.6476 GB, free: 194 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01228/1.314, allocations: 7.384 MB / 0.6548 GB, free: 191.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001254/1.315, allocations: 81.14 kB / 0.6548 GB, free: 191.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003253/1.319, allocations: 5.24 MB / 0.66 GB, free: 188.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002246/1.321, allocations: 1.349 MB / 0.6613 GB, free: 187.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002911/1.324, allocations: 1.943 MB / 0.6632 GB, free: 186.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.056e-05/1.324, allocations: 305.7 kB / 0.6635 GB, free: 186.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005528/1.329, allocations: 4.285 MB / 0.6676 GB, free: 185 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008616/1.338, allocations: 9.188 MB / 0.6766 GB, free: 177 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01508/1.353, allocations: 14.26 MB / 0.6905 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.353, allocations: 48 kB / 0.6906 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03485/1.388, allocations: 18 MB / 0.7082 GB, free: 144.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.86e-05/1.388, allocations: 76 kB / 0.7082 GB, free: 144.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001571/1.388, allocations: 171.9 kB / 0.7084 GB, free: 144.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01446/1.403, allocations: 5.326 MB / 0.7136 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007063/1.41, allocations: 2.016 MB / 0.7156 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03642/1.446, allocations: 31.1 MB / 0.746 GB, free: 105.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009404/1.456, allocations: 0.5508 MB / 0.7465 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001815/1.458, allocations: 0.5125 MB / 0.747 GB, free: 104.3 MB / 0.5137 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.008668/1.466, allocations: 3.633 MB / 0.7505 GB, free: 100.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/1.468, allocations: 0.6634 MB / 0.7512 GB, free: 99.99 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02019/1.488, allocations: 11.27 MB / 0.7622 GB, free: 88.65 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.459e-05/1.488, allocations: 37.56 kB / 0.7622 GB, free: 88.62 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.259e-05/1.488, allocations: 20 kB / 0.7622 GB, free: 88.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.114e-05/1.489, allocations: 15.94 kB / 0.7623 GB, free: 88.58 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04776/1.536, allocations: 22.03 MB / 0.7838 GB, free: 66.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-05/1.536, allocations: 4.156 kB / 0.7838 GB, free: 66.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.539, allocations: 455.3 kB / 0.7842 GB, free: 65.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01361/1.552, allocations: 5.01 MB / 0.7891 GB, free: 60.95 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009678/1.553, allocations: 75.61 kB / 0.7892 GB, free: 60.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03367/1.587, allocations: 30.5 MB / 0.819 GB, free: 29.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/1.587, allocations: 15.94 kB / 0.819 GB, free: 29.94 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2841/1.871, allocations: 16.48 MB / 0.8351 GB, free: 175.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005458/1.877, allocations: 1.335 MB / 0.8364 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002115/1.879, allocations: 76.28 kB / 0.8365 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004542/1.884, allocations: 264.5 kB / 0.8367 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001023/1.885, allocations: 266.2 kB / 0.837 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003154/1.885, allocations: 101.6 kB / 0.8371 GB, free: 175.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.008628/1.894, allocations: 4.737 MB / 0.8417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/1.894, allocations: 0 / 0.8417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01289/1.906, allocations: 2.18 MB / 0.8438 GB, free: 174.6 MB / 0.5137 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.001065/1.908, allocations: 228.7 kB / 0.844 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01589/1.923, allocations: 10.88 MB / 0.8547 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/1.923, allocations: 6.875 kB / 0.8547 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006154/1.93, allocations: 4.476 MB / 0.859 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00786/1.938, allocations: 1.025 MB / 0.86 GB, free: 168 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03745/1.975, allocations: 19.36 MB / 0.8789 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008334/1.983, allocations: 5.764 MB / 0.8846 GB, free: 147.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006444/1.99, allocations: 2.752 MB / 0.8873 GB, free: 145.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.991, allocations: 423.4 kB / 0.8877 GB, free: 145.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.213e-06/1.991, allocations: 0 / 0.8877 GB, free: 145.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1524/2.144, allocations: 94.49 MB / 0.9799 GB, free: 50.76 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)