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.001216/0.001216, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.529/1.529, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.001464/0.001464, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2626, allocations: 46.62 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.0258/0.2884, allocations: 23.47 MB / 348.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.3065, allocations: 7.065 MB / 355.8 MB, free: 5.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006737/0.3133, allocations: 187.4 kB / 356 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01594/0.3293, allocations: 7.948 MB / 364 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.3412, allocations: 3.595 MB / 367.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005907/0.3471, allocations: 2.009 MB / 369.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02071/0.3678, allocations: 12.26 MB / 381.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0175/0.3854, allocations: 10.49 MB / 392.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009574/0.395, allocations: 4.273 MB / 396.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01081/0.4059, allocations: 5.723 MB / 402.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004028/0.4099, allocations: 1.004 MB / 403.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007083/0.417, allocations: 2.154 MB / 405.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009058/0.4261, allocations: 5.059 MB / 410.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01364/0.4398, allocations: 5.425 MB / 416 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02477/0.4647, allocations: 16.95 MB / 432.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.4647, allocations: 0 / 432.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4647, allocations: 0 / 432.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006429/0.4654, allocations: 0 / 432.9 MB, free: 7.906 MB / 366.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.03681/0.5022, allocations: 11.23 MB / 444.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/0.5023, allocations: 12.03 kB / 444.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05838/0.5607, allocations: 5.418 MB / 449.6 MB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.348/0.9088, allocations: 9.154 MB / 458.7 MB, free: 101.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007545/0.9096, allocations: 0.525 MB / 459.3 MB, free: 101.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004434/0.914, allocations: 0.7247 MB / 460 MB, free: 101.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04682/0.9609, allocations: 19.51 MB / 479.5 MB, free: 89.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004483/0.9614, allocations: 89.45 kB / 479.6 MB, free: 89.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002854/0.9642, allocations: 327.8 kB / 479.9 MB, free: 89.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003787/0.968, allocations: 2.816 MB / 482.7 MB, free: 86.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03261/1.001, allocations: 16.25 MB / 499 MB, free: 70.12 MB / 382.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.1015/1.102, allocations: 74.58 MB / 0.5601 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02517/1.127, allocations: 8.471 MB / 0.5684 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007986/1.135, allocations: 4.762 MB / 0.573 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03063/1.166, allocations: 15.4 MB / 0.5881 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.021e-05/1.166, allocations: 76.64 kB / 0.5881 GB, free: 12.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=319): time 6.823e-06/1.166, allocations: 1.406 kB / 0.5881 GB, free: 12.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=419): time 0.4272/1.594, allocations: 50.44 MB / 0.6374 GB, free: 144.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/1.594, allocations: 410.7 kB / 0.6378 GB, free: 144.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/1.608, allocations: 7.645 MB / 0.6453 GB, free: 141.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001496/1.609, allocations: 97.14 kB / 0.6453 GB, free: 141.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005054/1.614, allocations: 5.616 MB / 0.6508 GB, free: 137.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002882/1.617, allocations: 1.526 MB / 0.6523 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003831/1.621, allocations: 2.088 MB / 0.6544 GB, free: 135.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.418e-05/1.621, allocations: 305.1 kB / 0.6547 GB, free: 134.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007133/1.628, allocations: 5.121 MB / 0.6597 GB, free: 131.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.639, allocations: 10.2 MB / 0.6696 GB, free: 118.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01975/1.659, allocations: 16.12 MB / 0.6854 GB, free: 100.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002169/1.659, allocations: 48 kB / 0.6854 GB, free: 100.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04633/1.706, allocations: 20.88 MB / 0.7058 GB, free: 79.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/1.706, allocations: 79.98 kB / 0.7059 GB, free: 79.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001934/1.706, allocations: 172 kB / 0.706 GB, free: 79.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01968/1.726, allocations: 6.479 MB / 0.7124 GB, free: 72.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007399/1.733, allocations: 2.152 MB / 0.7145 GB, free: 70.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04437/1.778, allocations: 33.58 MB / 0.7473 GB, free: 36.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01065/1.788, allocations: 0.6201 MB / 0.7479 GB, free: 36.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002297/1.791, allocations: 0.5312 MB / 0.7484 GB, free: 35.68 MB / 446.1 MB 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.008582/1.799, allocations: 4.1 MB / 0.7524 GB, free: 31.57 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001957/1.801, allocations: 0.6903 MB / 0.7531 GB, free: 30.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0273/1.829, allocations: 13.84 MB / 0.7666 GB, free: 16.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.982e-05/1.829, allocations: 47.98 kB / 0.7666 GB, free: 16.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.165e-05/1.829, allocations: 24 kB / 0.7667 GB, free: 16.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.72e-05/1.829, allocations: 24.44 kB / 0.7667 GB, free: 16.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3384/2.167, allocations: 27.17 MB / 0.7932 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.841e-05/2.167, allocations: 7.375 kB / 0.7932 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002749/2.17, allocations: 0.5515 MB / 0.7938 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0179/2.188, allocations: 5.967 MB / 0.7996 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/2.189, allocations: 86.69 kB / 0.7997 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04276/2.232, allocations: 30.28 MB / 0.8292 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/2.232, allocations: 15.62 kB / 0.8293 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03747/2.269, allocations: 20 MB / 0.8488 GB, free: 89.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005681/2.275, allocations: 1.537 MB / 0.8503 GB, free: 87.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003499/2.279, allocations: 76 kB / 0.8504 GB, free: 87.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005708/2.284, allocations: 311.5 kB / 0.8507 GB, free: 87.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001854/2.286, allocations: 302.4 kB / 0.8509 GB, free: 87.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008852/2.287, allocations: 112 kB / 0.8511 GB, free: 87.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009412/2.297, allocations: 4.901 MB / 0.8558 GB, free: 82.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/2.297, allocations: 0 / 0.8558 GB, free: 82.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01608/2.313, allocations: 2.405 MB / 0.8582 GB, free: 79.94 MB / 446.1 MB 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.001601/2.314, allocations: 287.5 kB / 0.8585 GB, free: 79.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02831/2.343, allocations: 17.33 MB / 0.8754 GB, free: 62.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/2.343, allocations: 4 kB / 0.8754 GB, free: 62.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007147/2.35, allocations: 5.096 MB / 0.8804 GB, free: 57.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007942/2.358, allocations: 1.078 MB / 0.8814 GB, free: 56.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04392/2.402, allocations: 22.68 MB / 0.9036 GB, free: 33.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007991/2.41, allocations: 6.386 MB / 0.9098 GB, free: 27.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007511/2.417, allocations: 2.954 MB / 0.9127 GB, free: 24.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/2.419, allocations: 439.4 kB / 0.9131 GB, free: 23.8 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/2.419, allocations: 0 / 0.9131 GB, free: 23.8 MB / 446.1 MB Notification: Performance of Templates: time 0.3935/2.812, allocations: 111.1 MB / 1.022 GB, free: 84.09 MB / 462.1 MB 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)