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.00123/0.00123, allocations: 105.6 kB / 16.62 MB, free: 6.809 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.001246/0.001246, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.392/1.392, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001142/0.001142, allocations: 47.92 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.0944, allocations: 46.62 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2742/0.3687, allocations: 111.5 MB / 437.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06082/0.4295, allocations: 21.2 MB / 458.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02906/0.4586, allocations: 0.5026 MB / 459.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01146/0.4702, allocations: 6.139 MB / 465.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009329/0.4796, allocations: 3.223 MB / 468.7 MB, free: 7.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003974/0.4835, allocations: 1.583 MB / 470.3 MB, free: 5.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01795/0.5015, allocations: 12.29 MB / 482.6 MB, free: 9.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01182/0.5134, allocations: 8.471 MB / 491 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007653/0.5211, allocations: 3.91 MB / 495 MB, free: 13.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008604/0.5297, allocations: 5.555 MB / 0.4888 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002873/0.5326, allocations: 0.7461 MB / 0.4895 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004492/0.5371, allocations: 1.721 MB / 0.4912 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005379/0.5425, allocations: 4.45 MB / 0.4955 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007342/0.5499, allocations: 4.713 MB / 0.5001 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01772/0.5676, allocations: 13.94 MB / 0.5137 GB, free: 13.8 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.5677, allocations: 0 / 0.5137 GB, free: 13.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5677, allocations: 0 / 0.5137 GB, free: 13.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004441/0.5682, allocations: 3.938 kB / 0.5137 GB, free: 13.79 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02705/0.5952, allocations: 10.06 MB / 0.5236 GB, free: 3.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.5953, allocations: 8.031 kB / 0.5236 GB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04544/0.6407, allocations: 5.283 MB / 0.5287 GB, free: 14.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02053/0.6613, allocations: 8.373 MB / 0.5369 GB, free: 5.863 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004614/0.6618, allocations: 448.2 kB / 0.5373 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002789/0.6646, allocations: 0.6165 MB / 0.5379 GB, free: 4.809 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3669/1.032, allocations: 17.13 MB / 0.5547 GB, free: 157.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006423/1.032, allocations: 97.42 kB / 0.5548 GB, free: 157.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001755/1.034, allocations: 277 kB / 0.555 GB, free: 157.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004521/1.039, allocations: 2.857 MB / 0.5578 GB, free: 157.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02856/1.067, allocations: 14.04 MB / 0.5715 GB, free: 150.6 MB / 446.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.07558/1.143, allocations: 69.43 MB / 0.6393 GB, free: 80.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01625/1.159, allocations: 7.465 MB / 0.6466 GB, free: 72.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004689/1.164, allocations: 4.461 MB / 0.651 GB, free: 68.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01628/1.18, allocations: 12.75 MB / 0.6634 GB, free: 55.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/1.18, allocations: 64.56 kB / 0.6635 GB, free: 54.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.59e-06/1.18, allocations: 0 / 0.6635 GB, free: 54.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=365): time 0.1331/1.313, allocations: 43.54 MB / 0.706 GB, free: 11.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/1.314, allocations: 401.5 kB / 0.7064 GB, free: 11.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/1.324, allocations: 7.385 MB / 0.7136 GB, free: 3.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001226/1.325, allocations: 85.7 kB / 0.7137 GB, free: 3.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2472/1.572, allocations: 5.236 MB / 0.7188 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002305/1.575, allocations: 1.343 MB / 0.7201 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0044/1.579, allocations: 1.939 MB / 0.722 GB, free: 147.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.97e-05/1.579, allocations: 301.1 kB / 0.7223 GB, free: 147.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007257/1.586, allocations: 4.282 MB / 0.7265 GB, free: 146.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0118/1.598, allocations: 9.195 MB / 0.7355 GB, free: 138.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01695/1.615, allocations: 14.24 MB / 0.7494 GB, free: 127.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002338/1.616, allocations: 47.5 kB / 0.7494 GB, free: 127.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03843/1.654, allocations: 18.01 MB / 0.767 GB, free: 121.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/1.654, allocations: 76 kB / 0.7671 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002002/1.654, allocations: 168 kB / 0.7672 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0145/1.669, allocations: 5.34 MB / 0.7725 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007082/1.676, allocations: 2.016 MB / 0.7744 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03494/1.711, allocations: 31.11 MB / 0.8048 GB, free: 83.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009689/1.721, allocations: 0.5612 MB / 0.8054 GB, free: 83.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001937/1.723, allocations: 0.5078 MB / 0.8059 GB, free: 82.57 MB / 446.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 (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.006881/1.73, allocations: 3.627 MB / 0.8094 GB, free: 78.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/1.731, allocations: 0.6595 MB / 0.81 GB, free: 78.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02/1.751, allocations: 11.27 MB / 0.821 GB, free: 66.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.447e-05/1.751, allocations: 36.88 kB / 0.8211 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.394e-05/1.751, allocations: 20.28 kB / 0.8211 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.131e-05/1.752, allocations: 15.94 kB / 0.8211 GB, free: 66.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03879/1.79, allocations: 22.16 MB / 0.8428 GB, free: 44.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-05/1.79, allocations: 11.94 kB / 0.8428 GB, free: 44.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002129/1.793, allocations: 450.2 kB / 0.8432 GB, free: 44.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01318/1.806, allocations: 5.038 MB / 0.8481 GB, free: 38.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001005/1.807, allocations: 64 kB / 0.8482 GB, free: 38.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2556/2.062, allocations: 30.52 MB / 0.878 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.364e-05/2.062, allocations: 16.25 kB / 0.878 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/2.094, allocations: 16.48 MB / 0.8941 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003832/2.098, allocations: 1.346 MB / 0.8954 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002131/2.1, allocations: 74.3 kB / 0.8955 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004482/2.105, allocations: 262.2 kB / 0.8957 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001091/2.106, allocations: 260.4 kB / 0.896 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/2.106, allocations: 106.6 kB / 0.8961 GB, free: 126.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009258/2.116, allocations: 4.728 MB / 0.9007 GB, free: 125.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.226e-06/2.116, allocations: 0 / 0.9007 GB, free: 125.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01288/2.129, allocations: 2.182 MB / 0.9028 GB, free: 125 MB / 446.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 (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.001056/2.13, allocations: 234.8 kB / 0.903 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.025/2.155, allocations: 14.31 MB / 0.917 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.775e-05/2.155, allocations: 7.938 kB / 0.917 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0066/2.161, allocations: 4.472 MB / 0.9214 GB, free: 116.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00826/2.17, allocations: 1.034 MB / 0.9224 GB, free: 115.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04056/2.21, allocations: 23.3 MB / 0.9452 GB, free: 94.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01233/2.223, allocations: 5.772 MB / 0.9508 GB, free: 89.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.009838/2.232, allocations: 2.755 MB / 0.9535 GB, free: 86.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/2.235, allocations: 415.4 kB / 0.9539 GB, free: 86.47 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/2.235, allocations: 0 / 0.9539 GB, free: 86.47 MB / 446.1 MB Notification: Performance of Templates: time 0.3974/2.632, allocations: 98.45 MB / 1.05 GB, free: 120.7 MB / 446.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)