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.005184/0.005184, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001089/0.001089, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.404/1.404, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.001137/0.001137, allocations: 42.17 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09776/0.09891, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02196/0.1209, allocations: 23.46 MB / 396.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.1371, allocations: 7.088 MB / 403.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006782/0.144, allocations: 179.4 kB / 403.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0142/0.1582, allocations: 7.94 MB / 411.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009852/0.1681, allocations: 3.595 MB / 415.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004937/0.1731, allocations: 2.02 MB / 417.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01913/0.1922, allocations: 12.24 MB / 429.7 MB, free: 8.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01573/0.208, allocations: 10.46 MB / 440.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008811/0.2169, allocations: 4.285 MB / 444.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009882/0.2268, allocations: 5.711 MB / 450.2 MB, free: 3.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004052/0.2309, allocations: 1.004 MB / 451.2 MB, free: 2.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007415/0.2383, allocations: 2.15 MB / 453.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2794/0.5177, allocations: 5.046 MB / 458.4 MB, free: 23.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01791/0.5357, allocations: 5.428 MB / 463.8 MB, free: 22.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03438/0.5701, allocations: 17.34 MB / 481.1 MB, free: 20.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.5701, allocations: 2.75 kB / 481.1 MB, free: 20.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5701, allocations: 0 / 481.1 MB, free: 20.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007821/0.5709, allocations: 3.531 kB / 481.1 MB, free: 20.08 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.03236/0.6033, allocations: 11.5 MB / 492.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.6034, allocations: 13.53 kB / 492.7 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04335/0.6467, allocations: 5.477 MB / 498.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/0.6667, allocations: 9.39 MB / 0.4956 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002777/0.667, allocations: 0.5148 MB / 0.4961 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/0.6694, allocations: 0.7297 MB / 0.4969 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0425/0.7119, allocations: 19.52 MB / 0.5159 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004057/0.7123, allocations: 93.8 kB / 0.516 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00135/0.7137, allocations: 324.8 kB / 0.5163 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004323/0.718, allocations: 2.819 MB / 0.5191 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03689/0.7549, allocations: 16.24 MB / 0.5349 GB, free: 15.17 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.1146/0.8696, allocations: 74.32 MB / 0.6075 GB, free: 3.758 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02362/0.8933, allocations: 8.478 MB / 0.6158 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006486/0.8998, allocations: 4.758 MB / 0.6204 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2822/1.182, allocations: 15.44 MB / 0.6355 GB, free: 170.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/1.182, allocations: 64.06 kB / 0.6356 GB, free: 170.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=319): time 5.34e-06/1.182, allocations: 0 / 0.6356 GB, free: 170.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=419): time 0.1539/1.336, allocations: 50.94 MB / 0.6853 GB, free: 140.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/1.336, allocations: 410.6 kB / 0.6857 GB, free: 139.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/1.346, allocations: 7.661 MB / 0.6932 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001172/1.348, allocations: 97.12 kB / 0.6933 GB, free: 132.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003139/1.351, allocations: 5.809 MB / 0.6989 GB, free: 126.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00182/1.353, allocations: 1.599 MB / 0.7005 GB, free: 124.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002807/1.355, allocations: 2.1 MB / 0.7026 GB, free: 122.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.625e-05/1.355, allocations: 301.1 kB / 0.7028 GB, free: 122.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005811/1.361, allocations: 5.119 MB / 0.7078 GB, free: 117.3 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007736/1.369, allocations: 10.2 MB / 0.7178 GB, free: 104.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/1.384, allocations: 16.14 MB / 0.7336 GB, free: 86.11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/1.384, allocations: 48 kB / 0.7336 GB, free: 86.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.03668/1.421, allocations: 20.9 MB / 0.754 GB, free: 65.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/1.421, allocations: 80.19 kB / 0.7541 GB, free: 65.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/1.421, allocations: 176 kB / 0.7543 GB, free: 64.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01752/1.439, allocations: 6.457 MB / 0.7606 GB, free: 58.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007215/1.446, allocations: 2.152 MB / 0.7627 GB, free: 56.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03929/1.486, allocations: 33.59 MB / 0.7955 GB, free: 22.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009207/1.495, allocations: 0.6203 MB / 0.7961 GB, free: 21.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002436/1.497, allocations: 0.5425 MB / 0.7966 GB, free: 21.38 MB / 0.4981 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.008026/1.505, allocations: 4.1 MB / 0.8006 GB, free: 17.26 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001509/1.507, allocations: 0.7295 MB / 0.8013 GB, free: 16.53 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2855/1.792, allocations: 13.85 MB / 0.8149 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.621e-05/1.793, allocations: 42.5 kB / 0.8149 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-05/1.793, allocations: 22.25 kB / 0.8149 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/1.793, allocations: 21.61 kB / 0.8149 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05884/1.852, allocations: 27 MB / 0.8413 GB, free: 145.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.357e-05/1.852, allocations: 6.938 kB / 0.8413 GB, free: 145.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002718/1.854, allocations: 0.551 MB / 0.8418 GB, free: 145.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01737/1.872, allocations: 5.956 MB / 0.8477 GB, free: 144.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001342/1.873, allocations: 79.03 kB / 0.8477 GB, free: 144.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04055/1.914, allocations: 30.29 MB / 0.8773 GB, free: 120.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.525e-05/1.914, allocations: 19.97 kB / 0.8773 GB, free: 120.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03655/1.95, allocations: 20.03 MB / 0.8969 GB, free: 100.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005651/1.956, allocations: 1.572 MB / 0.8984 GB, free: 99.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002716/1.959, allocations: 76 kB / 0.8985 GB, free: 99.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006567/1.965, allocations: 323.5 kB / 0.8988 GB, free: 99.04 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001625/1.967, allocations: 287.1 kB / 0.8991 GB, free: 98.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004153/1.967, allocations: 112 kB / 0.8992 GB, free: 98.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.01027/1.978, allocations: 4.898 MB / 0.904 GB, free: 93.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.31e-07/1.978, allocations: 0 / 0.904 GB, free: 93.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01439/1.992, allocations: 2.41 MB / 0.9063 GB, free: 91.4 MB / 0.4981 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.001449/1.994, allocations: 292.6 kB / 0.9066 GB, free: 91.13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01909/2.013, allocations: 12.45 MB / 0.9188 GB, free: 78.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/2.013, allocations: 0 / 0.9188 GB, free: 78.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.008435/2.021, allocations: 5.108 MB / 0.9238 GB, free: 73.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01185/2.033, allocations: 1.084 MB / 0.9248 GB, free: 72.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05029/2.084, allocations: 22.75 MB / 0.947 GB, free: 49.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01161/2.095, allocations: 6.389 MB / 0.9533 GB, free: 43.45 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008149/2.103, allocations: 2.954 MB / 0.9562 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/2.105, allocations: 439.4 kB / 0.9566 GB, free: 40.05 MB / 0.4981 GB Notification: Performance of SimCode: time 1.613e-06/2.105, allocations: 0 / 0.9566 GB, free: 40.05 MB / 0.4981 GB Notification: Performance of Templates: time 0.4327/2.538, allocations: 106 MB / 1.06 GB, free: 127.8 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)