Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001479/0.001479, 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.001712/0.001712, allocations: 193.4 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.449/1.449, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001385/0.001385, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2227, allocations: 46.64 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02296/0.2457, allocations: 23.46 MB / 348.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01585/0.2616, allocations: 7.073 MB / 355.8 MB, free: 5.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004958/0.2666, allocations: 175.4 kB / 356 MB, free: 5.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01572/0.2824, allocations: 7.948 MB / 364 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01334/0.2957, allocations: 3.599 MB / 367.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005561/0.3014, allocations: 2.005 MB / 369.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01938/0.3208, allocations: 12.26 MB / 381.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01751/0.3383, allocations: 10.49 MB / 392.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009096/0.3475, allocations: 4.269 MB / 396.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0108/0.3583, allocations: 5.723 MB / 402.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005635/0.3641, allocations: 1.004 MB / 403.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007902/0.372, allocations: 2.15 MB / 405.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008454/0.3805, allocations: 5.059 MB / 410.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01251/0.393, allocations: 5.425 MB / 416 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02397/0.417, allocations: 16.95 MB / 432.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.4171, allocations: 0 / 432.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4171, allocations: 0 / 432.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000724/0.4178, allocations: 0 / 432.9 MB, free: 7.969 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.0372/0.455, allocations: 11.24 MB / 444.1 MB, free: 12.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4551, allocations: 8.031 kB / 444.1 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04905/0.5042, allocations: 5.422 MB / 449.6 MB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3981/0.9024, allocations: 9.154 MB / 458.7 MB, free: 101.9 MB / 382.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005806/0.903, allocations: 0.5232 MB / 459.2 MB, free: 101.9 MB / 382.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004171/0.9072, allocations: 0.7295 MB / 460 MB, free: 101.7 MB / 382.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04799/0.9552, allocations: 19.51 MB / 479.5 MB, free: 89.59 MB / 382.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006589/0.9559, allocations: 95.33 kB / 479.6 MB, free: 89.52 MB / 382.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003797/0.9597, allocations: 326.7 kB / 479.9 MB, free: 89.25 MB / 382.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004231/0.964, allocations: 2.814 MB / 482.7 MB, free: 86.45 MB / 382.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03605/1, allocations: 16.25 MB / 499 MB, free: 70.21 MB / 382.2 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.1038/1.104, allocations: 74.58 MB / 0.5601 GB, free: 10.2 MB / 398.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02476/1.129, allocations: 8.473 MB / 0.5684 GB, free: 1.57 MB / 398.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007686/1.136, allocations: 4.762 MB / 0.573 GB, free: 12.79 MB / 414.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03067/1.167, allocations: 15.4 MB / 0.5881 GB, free: 12.86 MB / 430.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.711e-05/1.167, allocations: 68.59 kB / 0.5881 GB, free: 12.78 MB / 430.2 MB Notification: Performance of pre-optimization done (n=319): time 7.514e-06/1.167, allocations: 0 / 0.5881 GB, free: 12.78 MB / 430.2 MB Notification: Performance of matching and sorting (n=419): time 0.4273/1.595, allocations: 50.46 MB / 0.6374 GB, free: 144.9 MB / 446.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/1.595, allocations: 411.8 kB / 0.6378 GB, free: 144.5 MB / 446.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/1.605, allocations: 7.643 MB / 0.6453 GB, free: 141.8 MB / 446.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001414/1.607, allocations: 87.52 kB / 0.6453 GB, free: 141.7 MB / 446.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.003354/1.61, allocations: 5.617 MB / 0.6508 GB, free: 137.5 MB / 446.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.002217/1.613, allocations: 1.532 MB / 0.6523 GB, free: 136.3 MB / 446.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003034/1.616, allocations: 2.081 MB / 0.6544 GB, free: 135.2 MB / 446.2 MB Notification: Performance of setup shared object (initialization): time 6.237e-05/1.616, allocations: 304.7 kB / 0.6546 GB, free: 134.9 MB / 446.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006077/1.622, allocations: 5.119 MB / 0.6596 GB, free: 131.4 MB / 446.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009143/1.631, allocations: 10.2 MB / 0.6696 GB, free: 118.9 MB / 446.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01808/1.649, allocations: 16.13 MB / 0.6854 GB, free: 100.5 MB / 446.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001953/1.649, allocations: 52 kB / 0.6854 GB, free: 100.5 MB / 446.2 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04753/1.697, allocations: 20.86 MB / 0.7058 GB, free: 79.57 MB / 446.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.697, allocations: 84.06 kB / 0.7059 GB, free: 79.49 MB / 446.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002036/1.697, allocations: 172 kB / 0.706 GB, free: 79.32 MB / 446.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01859/1.716, allocations: 6.472 MB / 0.7124 GB, free: 72.84 MB / 446.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007247/1.723, allocations: 2.158 MB / 0.7145 GB, free: 70.68 MB / 446.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03951/1.763, allocations: 33.59 MB / 0.7473 GB, free: 36.96 MB / 446.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008841/1.772, allocations: 0.6162 MB / 0.7479 GB, free: 36.34 MB / 446.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.773, allocations: 0.5349 MB / 0.7484 GB, free: 35.81 MB / 446.2 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.007308/1.781, allocations: 4.097 MB / 0.7524 GB, free: 31.7 MB / 446.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001715/1.782, allocations: 0.6982 MB / 0.7531 GB, free: 31 MB / 446.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02536/1.808, allocations: 13.85 MB / 0.7666 GB, free: 17.1 MB / 446.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.81e-05/1.808, allocations: 44 kB / 0.7666 GB, free: 17.05 MB / 446.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.892e-05/1.808, allocations: 24 kB / 0.7667 GB, free: 17.03 MB / 446.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/1.808, allocations: 23.86 kB / 0.7667 GB, free: 17.01 MB / 446.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2671/2.075, allocations: 27.18 MB / 0.7932 GB, free: 132.5 MB / 446.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.153e-05/2.075, allocations: 7.375 kB / 0.7932 GB, free: 132.5 MB / 446.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/2.078, allocations: 0.5455 MB / 0.7938 GB, free: 132.4 MB / 446.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01798/2.096, allocations: 5.974 MB / 0.7996 GB, free: 131.3 MB / 446.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001245/2.097, allocations: 82.91 kB / 0.7997 GB, free: 131.2 MB / 446.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03955/2.137, allocations: 30.28 MB / 0.8292 GB, free: 109 MB / 446.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/2.137, allocations: 15.94 kB / 0.8293 GB, free: 109 MB / 446.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0339/2.17, allocations: 20 MB / 0.8488 GB, free: 89.29 MB / 446.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005283/2.176, allocations: 1.538 MB / 0.8503 GB, free: 88.11 MB / 446.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002531/2.178, allocations: 76 kB / 0.8504 GB, free: 88.04 MB / 446.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00534/2.184, allocations: 311.5 kB / 0.8507 GB, free: 87.73 MB / 446.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001286/2.185, allocations: 302.2 kB / 0.8509 GB, free: 87.44 MB / 446.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003359/2.185, allocations: 113.6 kB / 0.851 GB, free: 87.33 MB / 446.2 MB Notification: Performance of sorting global known variables: time 0.007637/2.193, allocations: 4.898 MB / 0.8558 GB, free: 82.48 MB / 446.2 MB Notification: Performance of sort global known variables: time 1.7e-07/2.193, allocations: 0 / 0.8558 GB, free: 82.48 MB / 446.2 MB Notification: Performance of remove unused functions: time 0.01338/2.206, allocations: 2.405 MB / 0.8582 GB, free: 80.08 MB / 446.2 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.001638/2.208, allocations: 289.1 kB / 0.8585 GB, free: 79.81 MB / 446.2 MB Notification: Performance of simCode: created initialization part: time 0.02887/2.237, allocations: 17.34 MB / 0.8754 GB, free: 62.62 MB / 446.2 MB Notification: Performance of simCode: created event and clocks part: time 1.946e-05/2.237, allocations: 4 kB / 0.8754 GB, free: 62.62 MB / 446.2 MB Notification: Performance of simCode: created simulation system equations: time 0.007189/2.244, allocations: 5.101 MB / 0.8804 GB, free: 57.54 MB / 446.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00804/2.252, allocations: 1.079 MB / 0.8814 GB, free: 56.47 MB / 446.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04692/2.299, allocations: 22.67 MB / 0.9036 GB, free: 33.76 MB / 446.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01122/2.311, allocations: 6.386 MB / 0.9098 GB, free: 27.34 MB / 446.2 MB Notification: Performance of simCode: alias equations: time 0.00819/2.319, allocations: 2.965 MB / 0.9127 GB, free: 24.36 MB / 446.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/2.32, allocations: 435.4 kB / 0.9131 GB, free: 23.94 MB / 446.2 MB Notification: Performance of SimCode: time 1.603e-06/2.32, allocations: 4 kB / 0.9131 GB, free: 23.93 MB / 446.2 MB Notification: Performance of Templates: time 0.4299/2.75, allocations: 111 MB / 1.022 GB, free: 84.19 MB / 462.2 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)