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.006083/0.006083, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001352/0.001352, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.398/1.398, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.001178/0.001178, allocations: 51.27 kB / 326.6 MB, free: 14.53 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08861, allocations: 46.63 MB / 373.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02533/0.114, allocations: 23.44 MB / 396.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01781/0.1319, allocations: 7.092 MB / 403.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005154/0.1372, allocations: 175.4 kB / 403.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01425/0.1514, allocations: 7.948 MB / 411.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.1615, allocations: 3.696 MB / 415.6 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005245/0.1668, allocations: 2.024 MB / 417.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01735/0.1842, allocations: 12.25 MB / 429.8 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01647/0.2007, allocations: 10.46 MB / 440.3 MB, free: 14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009106/0.2098, allocations: 4.285 MB / 444.6 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009529/0.2194, allocations: 5.734 MB / 450.3 MB, free: 3.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004893/0.2244, allocations: 1.004 MB / 451.3 MB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006123/0.2305, allocations: 2.158 MB / 453.5 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2694/0.5, allocations: 5.126 MB / 458.6 MB, free: 23.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02331/0.5233, allocations: 5.433 MB / 464 MB, free: 21.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03411/0.5575, allocations: 17.28 MB / 481.3 MB, free: 19.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.172e-05/0.5575, allocations: 1.438 kB / 481.3 MB, free: 19.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5575, allocations: 2.062 kB / 481.3 MB, free: 19.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001033/0.5586, allocations: 0 / 481.3 MB, free: 19.72 MB / 382.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.04817/0.6068, allocations: 11.22 MB / 492.5 MB, free: 12.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.6069, allocations: 11.34 kB / 492.5 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04661/0.6535, allocations: 5.423 MB / 498 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02277/0.6763, allocations: 9.342 MB / 0.4954 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004505/0.6768, allocations: 0.5271 MB / 0.4959 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003655/0.6804, allocations: 0.7287 MB / 0.4966 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0547/0.7352, allocations: 19.5 MB / 0.5157 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007997/0.736, allocations: 100.9 kB / 0.5158 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004297/0.7403, allocations: 326.2 kB / 0.5161 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005122/0.7455, allocations: 2.813 MB / 0.5189 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04383/0.7894, allocations: 16.25 MB / 0.5347 GB, free: 15.4 MB / 430.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.1334/0.9228, allocations: 74.18 MB / 0.6072 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02563/0.9485, allocations: 8.478 MB / 0.6154 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007631/0.9562, allocations: 4.765 MB / 0.6201 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03332/0.9895, allocations: 15.41 MB / 0.6351 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.515e-05/0.9896, allocations: 68.31 kB / 0.6352 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=319): time 7.854e-06/0.9897, allocations: 0 / 0.6352 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.4237/1.413, allocations: 50.45 MB / 0.6845 GB, free: 173.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/1.414, allocations: 410.6 kB / 0.6849 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0152/1.429, allocations: 7.641 MB / 0.6923 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001505/1.43, allocations: 92.05 kB / 0.6924 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004253/1.435, allocations: 5.615 MB / 0.6979 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00255/1.437, allocations: 1.535 MB / 0.6994 GB, free: 158 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00407/1.441, allocations: 2.081 MB / 0.7014 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.78e-05/1.441, allocations: 305.1 kB / 0.7017 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007118/1.448, allocations: 5.123 MB / 0.7067 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01093/1.459, allocations: 10.2 MB / 0.7167 GB, free: 137.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01814/1.478, allocations: 16.14 MB / 0.7324 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.478, allocations: 52.69 kB / 0.7325 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.0438/1.522, allocations: 20.86 MB / 0.7529 GB, free: 98.38 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/1.522, allocations: 88 kB / 0.7529 GB, free: 98.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/1.522, allocations: 168 kB / 0.7531 GB, free: 98.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0197/1.542, allocations: 6.458 MB / 0.7594 GB, free: 91.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007936/1.55, allocations: 2.145 MB / 0.7615 GB, free: 89.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04275/1.592, allocations: 33.58 MB / 0.7943 GB, free: 55.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/1.603, allocations: 0.6201 MB / 0.7949 GB, free: 55.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002585/1.606, allocations: 0.5345 MB / 0.7954 GB, free: 54.64 MB / 0.5137 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.01119/1.617, allocations: 4.104 MB / 0.7994 GB, free: 50.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002784/1.62, allocations: 0.6903 MB / 0.8001 GB, free: 49.82 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02892/1.649, allocations: 13.85 MB / 0.8136 GB, free: 35.92 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.96e-05/1.649, allocations: 41.56 kB / 0.8137 GB, free: 35.88 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.564e-05/1.649, allocations: 24 kB / 0.8137 GB, free: 35.86 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-05/1.649, allocations: 19.92 kB / 0.8137 GB, free: 35.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3325/1.981, allocations: 27.02 MB / 0.8401 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.167e-05/1.981, allocations: 7.906 kB / 0.8401 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002886/1.984, allocations: 0.5431 MB / 0.8406 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01838/2.003, allocations: 5.957 MB / 0.8465 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001456/2.004, allocations: 77.44 kB / 0.8465 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03969/2.044, allocations: 30.28 MB / 0.8761 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/2.044, allocations: 15.94 kB / 0.8761 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0349/2.079, allocations: 19.99 MB / 0.8956 GB, free: 132.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006307/2.085, allocations: 1.535 MB / 0.8971 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002959/2.088, allocations: 86.89 kB / 0.8972 GB, free: 131.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00603/2.094, allocations: 319.2 kB / 0.8975 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001592/2.096, allocations: 294.3 kB / 0.8978 GB, free: 131.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004131/2.096, allocations: 112 kB / 0.8979 GB, free: 131 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.009817/2.106, allocations: 4.898 MB / 0.9027 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.363e-06/2.106, allocations: 0 / 0.9027 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01399/2.12, allocations: 2.402 MB / 0.905 GB, free: 123.7 MB / 0.5137 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.001635/2.122, allocations: 288.2 kB / 0.9053 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02012/2.142, allocations: 12.44 MB / 0.9175 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.95e-05/2.142, allocations: 0 / 0.9175 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.008446/2.151, allocations: 5.107 MB / 0.9224 GB, free: 106 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009437/2.16, allocations: 1.065 MB / 0.9235 GB, free: 105 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04758/2.208, allocations: 22.44 MB / 0.9454 GB, free: 82.66 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009484/2.217, allocations: 6.389 MB / 0.9516 GB, free: 76.23 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007102/2.224, allocations: 2.961 MB / 0.9545 GB, free: 73.26 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/2.226, allocations: 435.4 kB / 0.955 GB, free: 72.84 MB / 0.5137 GB Notification: Performance of SimCode: time 1.102e-06/2.226, allocations: 0 / 0.955 GB, free: 72.84 MB / 0.5137 GB Notification: Performance of Templates: time 0.437/2.663, allocations: 106 MB / 1.058 GB, free: 146.2 MB / 0.5137 GB 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)