Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.00147/0.00147, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002173/0.002173, allocations: 194.4 kB / 16.25 MB, free: 6.625 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.438/1.438, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001336/0.001336, allocations: 47.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2405, allocations: 46.64 MB / 324.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.09761/0.3381, allocations: 114.3 MB / 439.2 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2865/0.6246, allocations: 22.27 MB / 461.4 MB, free: 416 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03136/0.6561, allocations: 0.5042 MB / 461.9 MB, free: 416 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01392/0.67, allocations: 7.706 MB / 469.6 MB, free: 304 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008927/0.679, allocations: 3.357 MB / 473 MB, free: 96 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.6836, allocations: 1.906 MB / 474.9 MB, free: 48 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0195/0.7031, allocations: 12.87 MB / 487.8 MB, free: 15.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01836/0.7215, allocations: 11.01 MB / 498.8 MB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009764/0.7313, allocations: 4.399 MB / 0.4914 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01088/0.7423, allocations: 6.328 MB / 0.4976 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004586/0.7469, allocations: 1.01 MB / 0.4986 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008221/0.7551, allocations: 2.168 MB / 0.5007 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009149/0.7643, allocations: 5.118 MB / 0.5057 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01699/0.7814, allocations: 5.465 MB / 0.511 GB, free: 7.371 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0245/0.806, allocations: 17.02 MB / 0.5276 GB, free: 6.703 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.806, allocations: 0 / 0.5276 GB, free: 6.703 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8061, allocations: 0 / 0.5276 GB, free: 6.703 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006076/0.8067, allocations: 0 / 0.5276 GB, free: 6.703 MB / 430.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.0364/0.8431, allocations: 11.23 MB / 0.5386 GB, free: 11.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/0.8432, allocations: 8.031 kB / 0.5386 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04593/0.8891, allocations: 5.424 MB / 0.5439 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02659/0.9158, allocations: 9.157 MB / 0.5529 GB, free: 13.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005921/0.9164, allocations: 0.518 MB / 0.5534 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004743/0.9212, allocations: 0.7381 MB / 0.5541 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04561/0.9668, allocations: 19.51 MB / 0.5731 GB, free: 7.758 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000592/0.9675, allocations: 97.23 kB / 0.5732 GB, free: 7.691 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003601/0.9711, allocations: 325.1 kB / 0.5735 GB, free: 7.422 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005175/0.9762, allocations: 2.823 MB / 0.5763 GB, free: 4.633 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03854/1.015, allocations: 16.24 MB / 0.5921 GB, free: 4.641 MB / 494.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.4921/1.507, allocations: 74.58 MB / 0.665 GB, free: 196.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02021/1.527, allocations: 8.475 MB / 0.6733 GB, free: 193.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005502/1.533, allocations: 4.76 MB / 0.6779 GB, free: 191.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02027/1.553, allocations: 15.4 MB / 0.6929 GB, free: 181.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/1.553, allocations: 65.97 kB / 0.693 GB, free: 181.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=319): time 5.891e-06/1.553, allocations: 2.062 kB / 0.693 GB, free: 181.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=419): time 0.1489/1.702, allocations: 50.46 MB / 0.7423 GB, free: 132.3 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/1.702, allocations: 402.7 kB / 0.7427 GB, free: 131.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008373/1.711, allocations: 7.643 MB / 0.7501 GB, free: 124.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001071/1.712, allocations: 101.2 kB / 0.7502 GB, free: 124.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002708/1.714, allocations: 5.616 MB / 0.7557 GB, free: 118.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.716, allocations: 1.531 MB / 0.7572 GB, free: 117 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002498/1.719, allocations: 2.086 MB / 0.7592 GB, free: 114.9 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.703e-05/1.719, allocations: 305.1 kB / 0.7595 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005507/1.724, allocations: 5.119 MB / 0.7645 GB, free: 109.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008454/1.733, allocations: 10.2 MB / 0.7745 GB, free: 96.93 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/1.749, allocations: 16.13 MB / 0.7903 GB, free: 78.38 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/1.749, allocations: 55.94 kB / 0.7903 GB, free: 78.33 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.05758/1.807, allocations: 20.86 MB / 0.8107 GB, free: 57.43 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.807, allocations: 76.22 kB / 0.8108 GB, free: 57.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002123/1.807, allocations: 176 kB / 0.8109 GB, free: 57.19 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01802/1.825, allocations: 6.475 MB / 0.8172 GB, free: 50.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007746/1.833, allocations: 2.156 MB / 0.8194 GB, free: 48.54 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06261/1.895, allocations: 33.58 MB / 0.8521 GB, free: 14.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01253/1.908, allocations: 0.6128 MB / 0.8527 GB, free: 14.21 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002313/1.91, allocations: 0.5406 MB / 0.8533 GB, free: 13.67 MB / 0.5138 GB 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.01067/1.921, allocations: 4.093 MB / 0.8573 GB, free: 9.562 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002845/1.924, allocations: 0.6943 MB / 0.8579 GB, free: 8.859 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2899/2.214, allocations: 13.85 MB / 0.8715 GB, free: 215.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.385e-05/2.214, allocations: 47.27 kB / 0.8715 GB, free: 215.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.748e-05/2.214, allocations: 25.41 kB / 0.8715 GB, free: 215.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-05/2.214, allocations: 24.94 kB / 0.8716 GB, free: 215.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05189/2.266, allocations: 27.17 MB / 0.8981 GB, free: 206.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.864e-05/2.266, allocations: 13.36 kB / 0.8981 GB, free: 206.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002621/2.269, allocations: 0.5452 MB / 0.8986 GB, free: 206.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01648/2.285, allocations: 5.974 MB / 0.9045 GB, free: 203.8 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001092/2.286, allocations: 78.33 kB / 0.9046 GB, free: 203.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03674/2.323, allocations: 30.29 MB / 0.9341 GB, free: 175.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.134e-05/2.323, allocations: 11.94 kB / 0.9341 GB, free: 175.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03206/2.355, allocations: 19.99 MB / 0.9537 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006082/2.362, allocations: 1.54 MB / 0.9552 GB, free: 154.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002943/2.364, allocations: 79.98 kB / 0.9552 GB, free: 154.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005697/2.37, allocations: 314.7 kB / 0.9555 GB, free: 154.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001379/2.372, allocations: 294.1 kB / 0.9558 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003476/2.372, allocations: 112 kB / 0.9559 GB, free: 153.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008339/2.38, allocations: 4.894 MB / 0.9607 GB, free: 149 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.91e-07/2.38, allocations: 0 / 0.9607 GB, free: 149 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01298/2.393, allocations: 2.416 MB / 0.9631 GB, free: 146.6 MB / 0.5138 GB 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.001397/2.395, allocations: 283.4 kB / 0.9633 GB, free: 146.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02725/2.422, allocations: 17.33 MB / 0.9803 GB, free: 129.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/2.422, allocations: 0 / 0.9803 GB, free: 129.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006859/2.429, allocations: 5.101 MB / 0.9853 GB, free: 124 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009069/2.438, allocations: 1.069 MB / 0.9863 GB, free: 123 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04917/2.487, allocations: 26.87 MB / 1.013 GB, free: 96.21 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01166/2.499, allocations: 6.386 MB / 1.019 GB, free: 89.79 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.009415/2.508, allocations: 2.969 MB / 1.022 GB, free: 86.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002242/2.511, allocations: 431.4 kB / 1.022 GB, free: 86.38 MB / 0.5138 GB Notification: Performance of SimCode: time 1.553e-06/2.511, allocations: 0 / 1.022 GB, free: 86.38 MB / 0.5138 GB Notification: Performance of Templates: time 0.4134/2.924, allocations: 111 MB / 1.13 GB, free: 178.6 MB / 0.5138 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)