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.01072/0.01072, allocations: 95.44 kB / 15.73 MB, free: 6.062 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.002901/0.002901, allocations: 197.2 kB / 16.68 MB, free: 5.984 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.485/1.485, allocations: 205.1 MB / 222.5 MB, free: 4.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.001325/0.001325, allocations: 45.59 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09177, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02367/0.1155, allocations: 23.45 MB / 396.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02189/0.1374, allocations: 7.088 MB / 403.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007142/0.1447, allocations: 183.4 kB / 403.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0146/0.1593, allocations: 7.933 MB / 411.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.1707, allocations: 3.606 MB / 415.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0061/0.1769, allocations: 2.016 MB / 417.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01891/0.1958, allocations: 12.25 MB / 429.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01565/0.2115, allocations: 10.45 MB / 440.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009394/0.221, allocations: 4.281 MB / 444.5 MB, free: 9.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01263/0.2336, allocations: 5.719 MB / 450.2 MB, free: 4.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004219/0.2379, allocations: 1 MB / 451.2 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006955/0.2449, allocations: 2.154 MB / 453.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2584/0.5033, allocations: 5.046 MB / 458.4 MB, free: 23.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01603/0.5194, allocations: 5.432 MB / 463.8 MB, free: 22.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02837/0.5478, allocations: 17.34 MB / 481.1 MB, free: 19.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.5478, allocations: 0 / 481.1 MB, free: 19.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5479, allocations: 0 / 481.1 MB, free: 19.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007563/0.5486, allocations: 0 / 481.1 MB, free: 19.75 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.0389/0.5875, allocations: 11.5 MB / 492.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.5876, allocations: 11.09 kB / 492.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04636/0.634, allocations: 5.481 MB / 498.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02393/0.6579, allocations: 9.383 MB / 0.4956 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004592/0.6584, allocations: 0.5222 MB / 0.4961 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004569/0.663, allocations: 0.7351 MB / 0.4968 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05321/0.7163, allocations: 19.51 MB / 0.5159 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004304/0.7167, allocations: 96.67 kB / 0.516 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001599/0.7183, allocations: 324.7 kB / 0.5163 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004388/0.7227, allocations: 2.819 MB / 0.5191 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03894/0.7617, allocations: 16.25 MB / 0.5349 GB, free: 15.04 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.1276/0.8893, allocations: 74.32 MB / 0.6075 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02578/0.9151, allocations: 8.478 MB / 0.6158 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007929/0.9231, allocations: 4.762 MB / 0.6204 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03232/0.9554, allocations: 15.43 MB / 0.6355 GB, free: 6.375 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001106/0.9556, allocations: 76.11 kB / 0.6356 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=319): time 1.115e-05/0.9556, allocations: 0 / 0.6356 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.4417/1.397, allocations: 50.93 MB / 0.6853 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/1.398, allocations: 406.7 kB / 0.6857 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01255/1.41, allocations: 7.659 MB / 0.6932 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.00167/1.412, allocations: 93.7 kB / 0.6933 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003842/1.416, allocations: 5.807 MB / 0.6989 GB, free: 158.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002496/1.418, allocations: 1.605 MB / 0.7005 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003473/1.422, allocations: 2.094 MB / 0.7025 GB, free: 154.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.456e-05/1.422, allocations: 305.1 kB / 0.7028 GB, free: 154.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006684/1.428, allocations: 5.123 MB / 0.7078 GB, free: 149.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01066/1.439, allocations: 10.2 MB / 0.7178 GB, free: 136.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02001/1.459, allocations: 16.14 MB / 0.7335 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001915/1.459, allocations: 52.69 kB / 0.7336 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.0501/1.509, allocations: 20.89 MB / 0.754 GB, free: 97.23 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002501/1.51, allocations: 87.92 kB / 0.7541 GB, free: 97.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003916/1.51, allocations: 172 kB / 0.7543 GB, free: 96.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02043/1.531, allocations: 6.459 MB / 0.7606 GB, free: 90.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00807/1.539, allocations: 2.147 MB / 0.7627 GB, free: 88.36 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04712/1.586, allocations: 33.6 MB / 0.7955 GB, free: 54.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/1.598, allocations: 0.6142 MB / 0.7961 GB, free: 54 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003471/1.601, allocations: 0.5312 MB / 0.7966 GB, free: 53.47 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.01401/1.615, allocations: 4.109 MB / 0.8006 GB, free: 49.35 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003389/1.619, allocations: 0.7257 MB / 0.8013 GB, free: 48.62 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03444/1.653, allocations: 13.85 MB / 0.8148 GB, free: 34.72 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.222e-05/1.653, allocations: 45.94 kB / 0.8149 GB, free: 34.68 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-05/1.653, allocations: 28 kB / 0.8149 GB, free: 34.65 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001114/1.654, allocations: 15.94 kB / 0.8149 GB, free: 34.63 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3028/1.956, allocations: 27.02 MB / 0.8413 GB, free: 166.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.553e-05/1.956, allocations: 7.281 kB / 0.8413 GB, free: 166.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.959, allocations: 0.5463 MB / 0.8419 GB, free: 166.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0187/1.978, allocations: 5.954 MB / 0.8477 GB, free: 165.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001338/1.98, allocations: 79.23 kB / 0.8477 GB, free: 165.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03929/2.019, allocations: 30.3 MB / 0.8773 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/2.019, allocations: 11.94 kB / 0.8773 GB, free: 150.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03365/2.053, allocations: 20.02 MB / 0.8969 GB, free: 131.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005664/2.058, allocations: 1.577 MB / 0.8984 GB, free: 130.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003984/2.062, allocations: 83.92 kB / 0.8985 GB, free: 130.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005841/2.068, allocations: 318.3 kB / 0.8988 GB, free: 130.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/2.07, allocations: 294.9 kB / 0.8991 GB, free: 129.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006454/2.07, allocations: 109 kB / 0.8992 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.01128/2.082, allocations: 4.902 MB / 0.904 GB, free: 124.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7.22e-07/2.082, allocations: 0 / 0.904 GB, free: 124.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01679/2.098, allocations: 2.408 MB / 0.9063 GB, free: 122.4 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.002197/2.101, allocations: 286 kB / 0.9066 GB, free: 122.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02183/2.122, allocations: 12.45 MB / 0.9188 GB, free: 109.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/2.123, allocations: 4 kB / 0.9188 GB, free: 109.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.008747/2.131, allocations: 5.106 MB / 0.9238 GB, free: 104.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0111/2.142, allocations: 1.083 MB / 0.9248 GB, free: 103.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05948/2.202, allocations: 22.75 MB / 0.947 GB, free: 81.01 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01569/2.218, allocations: 6.389 MB / 0.9533 GB, free: 74.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009935/2.228, allocations: 2.958 MB / 0.9562 GB, free: 71.63 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002768/2.23, allocations: 435.4 kB / 0.9566 GB, free: 71.21 MB / 0.5137 GB Notification: Performance of SimCode: time 1.182e-06/2.23, allocations: 0 / 0.9566 GB, free: 71.21 MB / 0.5137 GB Notification: Performance of Templates: time 0.4416/2.672, allocations: 106 MB / 1.06 GB, free: 144.1 MB / 0.5137 GB 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)