Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001139/0.001139, allocations: 87.31 kB / 16.31 MB, free: 6.449 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.001374/0.001375, allocations: 184.2 kB / 17.21 MB, free: 6.32 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.436/1.436, allocations: 205.4 MB / 223.4 MB, free: 5.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.0005388/0.0005389, allocations: 12 kB / 280.1 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2629, allocations: 47.59 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.09789/0.3608, allocations: 101.3 MB / 429 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05572/0.4166, allocations: 20.43 MB / 449.4 MB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02128/0.438, allocations: 0.4987 MB / 449.9 MB, free: 9.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01749/0.4555, allocations: 5.288 MB / 455.2 MB, free: 3.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2882/0.7437, allocations: 15.65 MB / 470.9 MB, free: 4.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008841/0.7526, allocations: 1.495 MB / 472.4 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.123/0.8756, allocations: 98.58 MB / 0.5576 GB, free: 9.035 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01665/0.8923, allocations: 9.301 MB / 0.5666 GB, free: 2.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008457/0.9008, allocations: 3.103 MB / 0.5697 GB, free: 280 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009144/0.91, allocations: 4.638 MB / 0.5742 GB, free: 12.91 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002178/0.9122, allocations: 292 kB / 0.5745 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004058/0.9163, allocations: 1.136 MB / 0.5756 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005561/0.9219, allocations: 3.849 MB / 0.5793 GB, free: 8.816 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003096/0.925, allocations: 1.63 MB / 0.5809 GB, free: 8.219 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.9394, allocations: 11 MB / 0.5917 GB, free: 14.66 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.9395, allocations: 0 / 0.5917 GB, free: 14.66 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.9395, allocations: 4 kB / 0.5917 GB, free: 14.66 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005125/0.94, allocations: 0 / 0.5917 GB, free: 14.66 MB / 478.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.02354/0.9635, allocations: 8.424 MB / 0.5999 GB, free: 6.855 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/0.9636, allocations: 15.67 kB / 0.5999 GB, free: 6.844 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0378/1.001, allocations: 5.403 MB / 0.6052 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01996/1.021, allocations: 8.218 MB / 0.6132 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004494/1.022, allocations: 447.2 kB / 0.6136 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002787/1.025, allocations: 0.6066 MB / 0.6142 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4548/1.48, allocations: 17.15 MB / 0.631 GB, free: 209.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006201/1.48, allocations: 102.8 kB / 0.6311 GB, free: 209 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00165/1.482, allocations: 278.6 kB / 0.6313 GB, free: 209 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005005/1.487, allocations: 2.856 MB / 0.6341 GB, free: 209 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02992/1.517, allocations: 14.05 MB / 0.6479 GB, free: 203.2 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.09659/1.613, allocations: 69.45 MB / 0.7157 GB, free: 135 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01791/1.631, allocations: 7.49 MB / 0.723 GB, free: 127.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005802/1.637, allocations: 4.458 MB / 0.7274 GB, free: 122.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02288/1.66, allocations: 12.75 MB / 0.7398 GB, free: 110 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.079e-05/1.66, allocations: 64.56 kB / 0.7399 GB, free: 109.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 7.624e-06/1.66, allocations: 0 / 0.7399 GB, free: 109.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.1385/1.799, allocations: 43.93 MB / 0.7828 GB, free: 66.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/1.799, allocations: 402.2 kB / 0.7831 GB, free: 65.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01249/1.812, allocations: 7.346 MB / 0.7903 GB, free: 58.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001347/1.813, allocations: 81.7 kB / 0.7904 GB, free: 58.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003836/1.817, allocations: 5.224 MB / 0.7955 GB, free: 53.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00233/1.819, allocations: 1.355 MB / 0.7968 GB, free: 51.71 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/1.82, allocations: 191.8 kB / 0.797 GB, free: 51.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004903/1.821, allocations: 0.703 MB / 0.7977 GB, free: 50.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006114/1.827, allocations: 4.247 MB / 0.8018 GB, free: 46.56 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01124/1.838, allocations: 9.16 MB / 0.8108 GB, free: 35.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00956/1.848, allocations: 6.059 MB / 0.8167 GB, free: 28.95 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/1.848, allocations: 48.09 kB / 0.8167 GB, free: 28.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03794/1.886, allocations: 17.93 MB / 0.8343 GB, free: 10.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.886, allocations: 79.94 kB / 0.8343 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001784/1.886, allocations: 168 kB / 0.8345 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/1.9, allocations: 5.32 MB / 0.8397 GB, free: 5.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006671/1.906, allocations: 2.012 MB / 0.8417 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.308/2.214, allocations: 29.02 MB / 0.87 GB, free: 176.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/2.225, allocations: 0.5568 MB / 0.8705 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002772/2.228, allocations: 0.5118 MB / 0.871 GB, free: 176.1 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01107/2.239, allocations: 3.614 MB / 0.8746 GB, free: 174.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002174/2.241, allocations: 0.6652 MB / 0.8752 GB, free: 174.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02222/2.263, allocations: 11.24 MB / 0.8862 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.42e-05/2.263, allocations: 39.38 kB / 0.8862 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.038e-05/2.263, allocations: 19.38 kB / 0.8862 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.74e-05/2.263, allocations: 18.61 kB / 0.8863 GB, free: 171.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04378/2.307, allocations: 22.14 MB / 0.9079 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.247e-05/2.307, allocations: 4 kB / 0.9079 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002381/2.31, allocations: 455.3 kB / 0.9083 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/2.322, allocations: 5.028 MB / 0.9132 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001327/2.324, allocations: 71.44 kB / 0.9133 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03804/2.362, allocations: 28.4 MB / 0.941 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/2.362, allocations: 14.23 kB / 0.9411 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02829/2.39, allocations: 16.45 MB / 0.9571 GB, free: 100.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004981/2.395, allocations: 1.345 MB / 0.9584 GB, free: 99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003022/2.398, allocations: 68.77 kB / 0.9585 GB, free: 98.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005452/2.404, allocations: 272.2 kB / 0.9587 GB, free: 98.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001198/2.405, allocations: 270.5 kB / 0.959 GB, free: 98.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005137/2.406, allocations: 100.4 kB / 0.9591 GB, free: 98.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01069/2.416, allocations: 4.679 MB / 0.9637 GB, free: 93.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.11e-07/2.416, allocations: 4 kB / 0.9637 GB, free: 93.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01441/2.431, allocations: 2.182 MB / 0.9658 GB, free: 91.48 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 96,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001757/2.432, allocations: 230.7 kB / 0.966 GB, free: 91.26 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01926/2.452, allocations: 10.75 MB / 0.9765 GB, free: 80.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/2.452, allocations: 0 / 0.9765 GB, free: 80.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007844/2.46, allocations: 4.463 MB / 0.9809 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01044/2.47, allocations: 0.9885 MB / 0.9818 GB, free: 75.08 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04246/2.513, allocations: 22.41 MB / 1.004 GB, free: 52.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007/2.52, allocations: 5.768 MB / 1.009 GB, free: 47.01 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007119/2.527, allocations: 2.748 MB / 1.012 GB, free: 44.26 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/2.528, allocations: 413.7 kB / 1.012 GB, free: 43.86 MB / 494.1 MB Notification: Performance of SimCode: time 1.723e-06/2.528, allocations: 0 / 1.012 GB, free: 43.86 MB / 494.1 MB Notification: Performance of Templates: time 0.3875/2.916, allocations: 90.83 MB / 1.101 GB, free: 133 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)