Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001145/0.001144, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001296/0.001296, allocations: 189.4 kB / 16.25 MB, free: 6.621 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.453/1.453, allocations: 205.1 MB / 222.1 MB, free: 4.66 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.001309/0.001309, allocations: 48.39 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2425, allocations: 46.63 MB / 324.8 MB, free: 2.273 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1035/0.346, allocations: 114.3 MB / 439.2 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3024/0.6484, allocations: 22.26 MB / 461.4 MB, free: 404 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0317/0.6802, allocations: 0.5076 MB / 461.9 MB, free: 404 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01333/0.6936, allocations: 7.704 MB / 469.6 MB, free: 292 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01095/0.7046, allocations: 3.362 MB / 473 MB, free: 88 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0059/0.7105, allocations: 1.905 MB / 474.9 MB, free: 40 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01858/0.7291, allocations: 12.87 MB / 487.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01623/0.7454, allocations: 11.02 MB / 498.8 MB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009975/0.7554, allocations: 4.405 MB / 0.4914 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01196/0.7674, allocations: 6.319 MB / 0.4976 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005298/0.7728, allocations: 1.004 MB / 0.4986 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008648/0.7815, allocations: 2.167 MB / 0.5007 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008485/0.79, allocations: 5.118 MB / 0.5057 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01376/0.8038, allocations: 5.472 MB / 0.511 GB, free: 7.598 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02204/0.8258, allocations: 17.02 MB / 0.5276 GB, free: 6.926 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.8259, allocations: 0 / 0.5276 GB, free: 6.926 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.8259, allocations: 0 / 0.5276 GB, free: 6.926 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007199/0.8266, allocations: 0 / 0.5276 GB, free: 6.926 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.03777/0.8644, allocations: 11.24 MB / 0.5386 GB, free: 11.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.8645, allocations: 8.031 kB / 0.5386 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04584/0.9103, allocations: 5.418 MB / 0.5439 GB, free: 6.301 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02606/0.9365, allocations: 9.155 MB / 0.5529 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005982/0.9371, allocations: 0.5196 MB / 0.5534 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003377/0.9405, allocations: 0.7269 MB / 0.5541 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04765/0.9882, allocations: 19.51 MB / 0.5731 GB, free: 7.992 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005783/0.9888, allocations: 97.14 kB / 0.5732 GB, free: 7.926 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003927/0.9927, allocations: 325 kB / 0.5735 GB, free: 7.656 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004954/0.9977, allocations: 2.824 MB / 0.5763 GB, free: 4.863 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03627/1.034, allocations: 16.25 MB / 0.5922 GB, free: 4.859 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.5018/1.536, allocations: 74.57 MB / 0.665 GB, free: 196.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02044/1.556, allocations: 8.466 MB / 0.6733 GB, free: 194.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005595/1.562, allocations: 4.758 MB / 0.6779 GB, free: 192 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02181/1.584, allocations: 15.4 MB / 0.6929 GB, free: 181.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.527e-05/1.584, allocations: 75.34 kB / 0.693 GB, free: 181.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=319): time 6.543e-06/1.584, allocations: 3.938 kB / 0.693 GB, free: 181.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=419): time 0.1547/1.739, allocations: 50.45 MB / 0.7423 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.739, allocations: 406.7 kB / 0.7427 GB, free: 132 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00822/1.747, allocations: 7.647 MB / 0.7501 GB, free: 124.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001011/1.748, allocations: 89.7 kB / 0.7502 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002434/1.751, allocations: 5.621 MB / 0.7557 GB, free: 118.7 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.752, allocations: 1.528 MB / 0.7572 GB, free: 117.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003153/1.755, allocations: 2.08 MB / 0.7592 GB, free: 115.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.945e-05/1.755, allocations: 309.1 kB / 0.7595 GB, free: 114.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005454/1.761, allocations: 5.119 MB / 0.7645 GB, free: 109.7 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007748/1.769, allocations: 10.2 MB / 0.7745 GB, free: 97.09 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01595/1.785, allocations: 16.13 MB / 0.7903 GB, free: 78.54 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/1.785, allocations: 52 kB / 0.7903 GB, free: 78.49 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.03597/1.821, allocations: 20.87 MB / 0.8107 GB, free: 57.59 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.668e-05/1.821, allocations: 80.94 kB / 0.8108 GB, free: 57.52 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.821, allocations: 168.9 kB / 0.8109 GB, free: 57.35 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01706/1.838, allocations: 6.481 MB / 0.8172 GB, free: 50.86 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006745/1.845, allocations: 2.145 MB / 0.8193 GB, free: 48.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03987/1.885, allocations: 33.58 MB / 0.8521 GB, free: 14.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009077/1.894, allocations: 0.6201 MB / 0.8527 GB, free: 14.36 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002149/1.896, allocations: 0.5326 MB / 0.8533 GB, free: 13.83 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.007759/1.904, allocations: 4.102 MB / 0.8573 GB, free: 9.715 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.905, allocations: 0.6942 MB / 0.8579 GB, free: 9.012 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2356/2.141, allocations: 13.85 MB / 0.8715 GB, free: 216.1 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.929e-05/2.141, allocations: 42.5 kB / 0.8715 GB, free: 216.1 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.104e-05/2.141, allocations: 24.41 kB / 0.8715 GB, free: 216.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.149e-05/2.141, allocations: 19.92 kB / 0.8716 GB, free: 216.1 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0526/2.194, allocations: 27.18 MB / 0.8981 GB, free: 207.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.337e-05/2.194, allocations: 10.69 kB / 0.8981 GB, free: 207.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002707/2.197, allocations: 0.5449 MB / 0.8986 GB, free: 207 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01687/2.214, allocations: 5.974 MB / 0.9045 GB, free: 204 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001105/2.215, allocations: 76.06 kB / 0.9045 GB, free: 204 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03788/2.253, allocations: 30.29 MB / 0.9341 GB, free: 175.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.662e-05/2.253, allocations: 11.94 kB / 0.9341 GB, free: 175.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03244/2.285, allocations: 20 MB / 0.9537 GB, free: 156 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004598/2.29, allocations: 1.537 MB / 0.9552 GB, free: 154.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002562/2.293, allocations: 75.52 kB / 0.9552 GB, free: 154.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004815/2.297, allocations: 319.2 kB / 0.9556 GB, free: 154.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/2.299, allocations: 293.5 kB / 0.9558 GB, free: 154.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003497/2.299, allocations: 111.8 kB / 0.9559 GB, free: 154.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007369/2.306, allocations: 4.898 MB / 0.9607 GB, free: 149.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/2.306, allocations: 0 / 0.9607 GB, free: 149.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01142/2.318, allocations: 2.407 MB / 0.9631 GB, free: 146.8 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.001339/2.319, allocations: 283.3 kB / 0.9633 GB, free: 146.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02748/2.347, allocations: 17.33 MB / 0.9803 GB, free: 129.4 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/2.347, allocations: 0 / 0.9803 GB, free: 129.4 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007388/2.354, allocations: 5.105 MB / 0.9853 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007688/2.362, allocations: 1.075 MB / 0.9863 GB, free: 123.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05622/2.418, allocations: 26.85 MB / 1.013 GB, free: 96.47 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009331/2.427, allocations: 6.389 MB / 1.019 GB, free: 90.05 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007765/2.435, allocations: 2.965 MB / 1.022 GB, free: 87.07 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/2.437, allocations: 435.4 kB / 1.022 GB, free: 86.64 MB / 0.5138 GB Notification: Performance of SimCode: time 1.492e-06/2.437, allocations: 0 / 1.022 GB, free: 86.64 MB / 0.5138 GB Notification: Performance of Templates: time 0.3977/2.835, allocations: 110.9 MB / 1.13 GB, free: 179 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)