Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001788/0.001788, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.456/1.456, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001215/0.001215, allocations: 48.16 kB / 280 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08485, allocations: 46.64 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02345/0.1083, allocations: 23.46 MB / 350.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01645/0.1248, allocations: 7.092 MB / 357.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004461/0.1294, allocations: 179.4 kB / 357.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01462/0.144, allocations: 7.937 MB / 365.3 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.1541, allocations: 3.595 MB / 368.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004907/0.1591, allocations: 2.005 MB / 370.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2176/0.3767, allocations: 12.25 MB / 383.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01814/0.3949, allocations: 10.5 MB / 393.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008567/0.4036, allocations: 4.268 MB / 397.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008689/0.4123, allocations: 5.719 MB / 403.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004335/0.4167, allocations: 1.004 MB / 404.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007093/0.4238, allocations: 2.156 MB / 406.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007715/0.4315, allocations: 5.047 MB / 411.8 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01172/0.4433, allocations: 5.43 MB / 417.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02208/0.4654, allocations: 16.96 MB / 434.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.365e-05/0.4655, allocations: 0 / 434.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4655, allocations: 0 / 434.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0008578/0.4664, allocations: 0 / 434.2 MB, free: 3.977 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03445/0.5008, allocations: 11.24 MB / 445.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5009, allocations: 12.03 kB / 445.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04945/0.5503, allocations: 5.418 MB / 450.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02526/0.5757, allocations: 9.152 MB / 460 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006483/0.5764, allocations: 0.5176 MB / 460.6 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004024/0.5804, allocations: 0.7357 MB / 461.3 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04524/0.6257, allocations: 19.51 MB / 480.8 MB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004412/0.6262, allocations: 94.5 kB / 480.9 MB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002323/0.6285, allocations: 322.1 kB / 481.2 MB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004792/0.6333, allocations: 2.823 MB / 484 MB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03712/0.6704, allocations: 16.24 MB / 0.4885 GB, free: 1.91 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.4639/1.134, allocations: 74.57 MB / 0.5614 GB, free: 110.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02375/1.158, allocations: 8.478 MB / 0.5697 GB, free: 109.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00673/1.165, allocations: 4.762 MB / 0.5743 GB, free: 108.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0246/1.19, allocations: 15.4 MB / 0.5893 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.244e-05/1.19, allocations: 76.09 kB / 0.5894 GB, free: 100.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 6.182e-06/1.19, allocations: 0 / 0.5894 GB, free: 100.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=419): time 0.1671/1.357, allocations: 50.45 MB / 0.6387 GB, free: 57.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/1.357, allocations: 410.1 kB / 0.6391 GB, free: 57.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/1.367, allocations: 7.64 MB / 0.6465 GB, free: 49.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001255/1.368, allocations: 93.7 kB / 0.6466 GB, free: 49.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003343/1.372, allocations: 5.615 MB / 0.6521 GB, free: 43.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002198/1.374, allocations: 1.532 MB / 0.6536 GB, free: 42.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003208/1.377, allocations: 2.082 MB / 0.6556 GB, free: 40.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/1.377, allocations: 301.1 kB / 0.6559 GB, free: 39.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006309/1.384, allocations: 5.119 MB / 0.6609 GB, free: 34.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009337/1.393, allocations: 10.2 MB / 0.6709 GB, free: 22.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01738/1.41, allocations: 16.14 MB / 0.6867 GB, free: 3.758 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001752/1.411, allocations: 52 kB / 0.6867 GB, free: 3.707 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.2481/1.659, allocations: 20.85 MB / 0.7071 GB, free: 143.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003161/1.659, allocations: 78.88 kB / 0.7071 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006614/1.66, allocations: 175.6 kB / 0.7073 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02214/1.682, allocations: 6.474 MB / 0.7136 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007846/1.69, allocations: 2.159 MB / 0.7157 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04956/1.739, allocations: 33.58 MB / 0.7485 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01/1.75, allocations: 0.6174 MB / 0.7491 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002139/1.752, allocations: 0.5418 MB / 0.7497 GB, free: 129.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,124,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008431/1.76, allocations: 4.101 MB / 0.7537 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002216/1.762, allocations: 0.6948 MB / 0.7544 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02965/1.792, allocations: 13.85 MB / 0.7679 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.319e-05/1.792, allocations: 40 kB / 0.7679 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.651e-05/1.792, allocations: 27.94 kB / 0.7679 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001314/1.792, allocations: 19.92 kB / 0.768 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05507/1.847, allocations: 27.18 MB / 0.7945 GB, free: 90.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.997e-05/1.848, allocations: 8 kB / 0.7945 GB, free: 90.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002547/1.85, allocations: 0.5422 MB / 0.795 GB, free: 89.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01647/1.867, allocations: 5.975 MB / 0.8009 GB, free: 83.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000873/1.868, allocations: 84.64 kB / 0.8009 GB, free: 83.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03602/1.904, allocations: 30.29 MB / 0.8305 GB, free: 53.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/1.904, allocations: 11.94 kB / 0.8305 GB, free: 53.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04813/1.952, allocations: 20 MB / 0.8501 GB, free: 33.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006493/1.958, allocations: 1.54 MB / 0.8516 GB, free: 32.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00385/1.962, allocations: 73.33 kB / 0.8516 GB, free: 32.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008197/1.97, allocations: 315.6 kB / 0.8519 GB, free: 31.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001853/1.972, allocations: 295.1 kB / 0.8522 GB, free: 31.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001114/1.973, allocations: 113.8 kB / 0.8523 GB, free: 31.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01147/1.985, allocations: 4.898 MB / 0.8571 GB, free: 26.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.02e-07/1.985, allocations: 0 / 0.8571 GB, free: 26.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01511/2, allocations: 2.412 MB / 0.8595 GB, free: 24.15 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,111,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00166/2.002, allocations: 286.3 kB / 0.8597 GB, free: 23.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2562/2.258, allocations: 17.32 MB / 0.8767 GB, free: 150.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/2.258, allocations: 2.531 kB / 0.8767 GB, free: 150.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01018/2.268, allocations: 5.1 MB / 0.8816 GB, free: 149.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008328/2.277, allocations: 1.075 MB / 0.8827 GB, free: 149.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04548/2.322, allocations: 22.69 MB / 0.9049 GB, free: 139.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009209/2.331, allocations: 6.388 MB / 0.9111 GB, free: 137.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007562/2.339, allocations: 2.96 MB / 0.914 GB, free: 136.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00152/2.341, allocations: 439.1 kB / 0.9144 GB, free: 135.7 MB / 462.1 MB Notification: Performance of SimCode: time 2.144e-06/2.341, allocations: 4 kB / 0.9144 GB, free: 135.7 MB / 462.1 MB Notification: Performance of Templates: time 0.1629/2.503, allocations: 111.1 MB / 1.023 GB, free: 25.47 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)