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.001214/0.001214, allocations: 95.53 kB / 16.3 MB, free: 5.996 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.001952/0.001951, allocations: 183.2 kB / 17.2 MB, free: 5.914 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.527/1.527, allocations: 205.4 MB / 223.4 MB, free: 5.535 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.0004461/0.0004462, allocations: 12 kB / 280.1 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2088, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.08546/0.2943, allocations: 95.46 MB / 423.2 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04592/0.3403, allocations: 21.46 MB / 444.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01846/0.3588, allocations: 0.4908 MB / 445.1 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01735/0.3762, allocations: 4.814 MB / 449.9 MB, free: 8.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2652/0.6414, allocations: 13.74 MB / 463.7 MB, free: 5.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006588/0.648, allocations: 1.473 MB / 465.1 MB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1048/0.7528, allocations: 77.88 MB / 0.5303 GB, free: 1.105 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01881/0.7717, allocations: 9.242 MB / 0.5393 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006334/0.778, allocations: 2.536 MB / 0.5418 GB, free: 8.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00709/0.7852, allocations: 3.264 MB / 0.545 GB, free: 6.574 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002033/0.7873, allocations: 292 kB / 0.5453 GB, free: 6.289 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004519/0.7918, allocations: 1.115 MB / 0.5463 GB, free: 5.363 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005407/0.7972, allocations: 3.551 MB / 0.5498 GB, free: 2.766 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.7997, allocations: 1.66 MB / 0.5514 GB, free: 2.156 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01426/0.8139, allocations: 11.67 MB / 0.5628 GB, free: 8.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.814, allocations: 0 / 0.5628 GB, free: 8.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.928e-06/0.814, allocations: 0 / 0.5628 GB, free: 8.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006525/0.8147, allocations: 4 kB / 0.5628 GB, free: 8.016 MB / 446.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.02589/0.8406, allocations: 9.2 MB / 0.5718 GB, free: 15.55 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.8406, allocations: 8.031 kB / 0.5718 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2998/1.14, allocations: 29.83 MB / 0.601 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02222/1.163, allocations: 9.348 MB / 0.6101 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003672/1.163, allocations: 450.4 kB / 0.6105 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001925/1.165, allocations: 0.6114 MB / 0.6111 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.349/1.514, allocations: 17.03 MB / 0.6277 GB, free: 207.6 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005057/1.515, allocations: 100.9 kB / 0.6278 GB, free: 207.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001687/1.516, allocations: 279.7 kB / 0.6281 GB, free: 207.6 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005413/1.522, allocations: 2.856 MB / 0.6309 GB, free: 207.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03063/1.552, allocations: 13.54 MB / 0.6441 GB, free: 202.6 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.08163/1.634, allocations: 68.2 MB / 0.7107 GB, free: 136.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0172/1.651, allocations: 7.26 MB / 0.7178 GB, free: 129.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/1.669, allocations: 12.21 MB / 0.7297 GB, free: 116.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/1.669, allocations: 68.56 kB / 0.7298 GB, free: 116.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 4.999e-06/1.669, allocations: 0 / 0.7298 GB, free: 116.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.1359/1.805, allocations: 42.06 MB / 0.7709 GB, free: 74.72 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/1.806, allocations: 402.2 kB / 0.7713 GB, free: 74.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01092/1.816, allocations: 8.153 MB / 0.7792 GB, free: 66.13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00115/1.818, allocations: 81.7 kB / 0.7793 GB, free: 66.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003453/1.821, allocations: 5.388 MB / 0.7846 GB, free: 60.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/1.823, allocations: 1.331 MB / 0.7859 GB, free: 59.33 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005672/1.824, allocations: 172.7 kB / 0.786 GB, free: 59.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003768/1.824, allocations: 0.6658 MB / 0.7867 GB, free: 58.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004601/1.829, allocations: 3.659 MB / 0.7902 GB, free: 54.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007968/1.837, allocations: 8.449 MB / 0.7985 GB, free: 44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008156/1.845, allocations: 5.42 MB / 0.8038 GB, free: 38.56 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.832e-05/1.845, allocations: 52 kB / 0.8038 GB, free: 38.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.02975/1.875, allocations: 15.33 MB / 0.8188 GB, free: 23.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.084e-05/1.875, allocations: 80.06 kB / 0.8189 GB, free: 23.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/1.875, allocations: 164.6 kB / 0.819 GB, free: 22.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/1.886, allocations: 4.061 MB / 0.823 GB, free: 18.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00597/1.892, allocations: 1.84 MB / 0.8248 GB, free: 16.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.258/2.15, allocations: 26.45 MB / 0.8506 GB, free: 180.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008875/2.159, allocations: 0.4995 MB / 0.8511 GB, free: 180.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001559/2.161, allocations: 0.4901 MB / 0.8516 GB, free: 180.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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 (988): * Single equations (assignments): 982 * 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.007425/2.168, allocations: 3.608 MB / 0.8551 GB, free: 178.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/2.17, allocations: 0.6851 MB / 0.8558 GB, free: 178.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01643/2.186, allocations: 9.395 MB / 0.865 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.765e-05/2.186, allocations: 38.09 kB / 0.865 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.723e-05/2.186, allocations: 19.09 kB / 0.865 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-05/2.186, allocations: 20.59 kB / 0.865 GB, free: 175.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03638/2.223, allocations: 20.37 MB / 0.8849 GB, free: 168.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.999e-05/2.223, allocations: 7.312 kB / 0.8849 GB, free: 168.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/2.225, allocations: 450.2 kB / 0.8854 GB, free: 168.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01101/2.236, allocations: 3.837 MB / 0.8891 GB, free: 164.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007867/2.237, allocations: 70.94 kB / 0.8892 GB, free: 164.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/2.266, allocations: 25.75 MB / 0.9143 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/2.266, allocations: 16.03 kB / 0.9144 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02317/2.289, allocations: 15.66 MB / 0.9296 GB, free: 123.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005901/2.295, allocations: 1.315 MB / 0.9309 GB, free: 121.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002869/2.298, allocations: 70.3 kB / 0.931 GB, free: 121.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006584/2.305, allocations: 232.4 kB / 0.9312 GB, free: 121.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.306, allocations: 264.2 kB / 0.9315 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003755/2.307, allocations: 101.4 kB / 0.9316 GB, free: 121.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01213/2.319, allocations: 5.346 MB / 0.9368 GB, free: 115.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.72e-07/2.319, allocations: 3.344 kB / 0.9368 GB, free: 115.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01317/2.332, allocations: 2.044 MB / 0.9388 GB, free: 113.8 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/2.333, allocations: 236.3 kB / 0.939 GB, free: 113.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01984/2.353, allocations: 9.637 MB / 0.9484 GB, free: 104 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.353, allocations: 0 / 0.9484 GB, free: 104 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006673/2.36, allocations: 4.351 MB / 0.9527 GB, free: 99.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00663/2.367, allocations: 1.019 MB / 0.9537 GB, free: 98.59 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0345/2.401, allocations: 21.64 MB / 0.9748 GB, free: 77.15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006758/2.408, allocations: 5.936 MB / 0.9806 GB, free: 71.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006877/2.415, allocations: 2.784 MB / 0.9833 GB, free: 68.38 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001304/2.416, allocations: 427.4 kB / 0.9837 GB, free: 67.96 MB / 494.1 MB Notification: Performance of SimCode: time 1.933e-06/2.416, allocations: 0 / 0.9837 GB, free: 67.96 MB / 494.1 MB Notification: Performance of Templates: time 0.3229/2.739, allocations: 88.01 MB / 1.07 GB, free: 155.6 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: