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.001256/0.001256, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00155/0.00155, allocations: 192.3 kB / 16.14 MB, free: 6.707 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.474/1.474, allocations: 205.1 MB / 222 MB, free: 4.77 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.001341/0.001341, allocations: 55.91 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2908, allocations: 46.62 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1016/0.3924, allocations: 114.3 MB / 439 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3325/0.725, allocations: 22.38 MB / 461.4 MB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02653/0.7515, allocations: 0.5109 MB / 461.9 MB, free: 436 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01299/0.7647, allocations: 7.989 MB / 469.9 MB, free: 240 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01002/0.7748, allocations: 3.426 MB / 473.3 MB, free: 28 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005441/0.7803, allocations: 1.848 MB / 475.2 MB, free: 15.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02652/0.8068, allocations: 17.37 MB / 492.5 MB, free: 13.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01646/0.8233, allocations: 10.16 MB / 0.4909 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01069/0.8341, allocations: 3.756 MB / 0.4946 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.8457, allocations: 6.02 MB / 0.5004 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004253/0.85, allocations: 0.6328 MB / 0.5011 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007595/0.8576, allocations: 1.863 MB / 0.5029 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008898/0.8666, allocations: 4.731 MB / 0.5075 GB, free: 10.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01418/0.8808, allocations: 5.036 MB / 0.5124 GB, free: 5.703 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02292/0.9038, allocations: 16.66 MB / 0.5287 GB, free: 5.383 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.9039, allocations: 0 / 0.5287 GB, free: 5.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.9039, allocations: 0 / 0.5287 GB, free: 5.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007321/0.9046, allocations: 0 / 0.5287 GB, free: 5.383 MB / 430.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.03822/0.9428, allocations: 11.23 MB / 0.5397 GB, free: 10.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.9429, allocations: 11.97 kB / 0.5397 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04282/0.9857, allocations: 5.417 MB / 0.545 GB, free: 4.762 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02397/1.01, allocations: 9.165 MB / 0.5539 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009206/1.011, allocations: 0.5225 MB / 0.5544 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004674/1.015, allocations: 0.7346 MB / 0.5551 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04473/1.06, allocations: 19.51 MB / 0.5742 GB, free: 6.434 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004143/1.061, allocations: 92.39 kB / 0.5743 GB, free: 6.371 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002463/1.063, allocations: 326.1 kB / 0.5746 GB, free: 6.102 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004336/1.067, allocations: 2.819 MB / 0.5773 GB, free: 3.316 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03479/1.102, allocations: 16.24 MB / 0.5932 GB, free: 3.32 MB / 494.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.5595/1.662, allocations: 74.57 MB / 0.666 GB, free: 192.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0213/1.683, allocations: 8.474 MB / 0.6743 GB, free: 190.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00644/1.69, allocations: 4.776 MB / 0.679 GB, free: 188.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02537/1.715, allocations: 15.4 MB / 0.694 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.608e-05/1.715, allocations: 64.5 kB / 0.6941 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=319): time 7.744e-06/1.715, allocations: 0 / 0.6941 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=419): time 0.1572/1.873, allocations: 50.45 MB / 0.7433 GB, free: 131.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/1.873, allocations: 407.1 kB / 0.7437 GB, free: 131 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01194/1.885, allocations: 7.643 MB / 0.7512 GB, free: 123.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001603/1.886, allocations: 101.4 kB / 0.7513 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004121/1.89, allocations: 5.611 MB / 0.7568 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002562/1.893, allocations: 1.532 MB / 0.7583 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003488/1.896, allocations: 2.089 MB / 0.7603 GB, free: 114 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.114e-05/1.897, allocations: 305.1 kB / 0.7606 GB, free: 113.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006365/1.903, allocations: 5.119 MB / 0.7656 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009495/1.912, allocations: 10.2 MB / 0.7756 GB, free: 96.05 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0175/1.93, allocations: 16.13 MB / 0.7913 GB, free: 77.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.93, allocations: 48.38 kB / 0.7913 GB, free: 77.45 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04549/1.976, allocations: 20.87 MB / 0.8117 GB, free: 56.55 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002503/1.976, allocations: 76.19 kB / 0.8118 GB, free: 56.47 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003241/1.976, allocations: 175.9 kB / 0.812 GB, free: 56.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01939/1.996, allocations: 6.458 MB / 0.8183 GB, free: 49.83 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007129/2.003, allocations: 2.152 MB / 0.8204 GB, free: 47.68 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04026/2.043, allocations: 31.42 MB / 0.8511 GB, free: 16.11 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/2.054, allocations: 0.6104 MB / 0.8517 GB, free: 15.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002209/2.056, allocations: 0.539 MB / 0.8522 GB, free: 14.96 MB / 0.5138 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.007995/2.064, allocations: 4.099 MB / 0.8562 GB, free: 10.85 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/2.066, allocations: 0.6942 MB / 0.8569 GB, free: 10.15 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2901/2.356, allocations: 13.85 MB / 0.8704 GB, free: 215.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.803e-05/2.356, allocations: 42.06 kB / 0.8704 GB, free: 215.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-05/2.356, allocations: 23.31 kB / 0.8705 GB, free: 215.7 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.975e-05/2.356, allocations: 20.69 kB / 0.8705 GB, free: 215.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05626/2.412, allocations: 27.18 MB / 0.897 GB, free: 207.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.415e-05/2.413, allocations: 7.844 kB / 0.897 GB, free: 207.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/2.416, allocations: 0.5527 MB / 0.8976 GB, free: 207.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01916/2.435, allocations: 5.954 MB / 0.9034 GB, free: 204.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001352/2.436, allocations: 76.36 kB / 0.9035 GB, free: 204.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03614/2.472, allocations: 28.2 MB / 0.931 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/2.472, allocations: 11.94 kB / 0.931 GB, free: 178.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03331/2.506, allocations: 20.01 MB / 0.9505 GB, free: 159 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004598/2.51, allocations: 1.528 MB / 0.952 GB, free: 157.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002145/2.513, allocations: 79.98 kB / 0.9521 GB, free: 157.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004654/2.517, allocations: 311.5 kB / 0.9524 GB, free: 157.5 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/2.518, allocations: 298.8 kB / 0.9527 GB, free: 157.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003492/2.519, allocations: 112 kB / 0.9528 GB, free: 157.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007241/2.526, allocations: 4.893 MB / 0.9576 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.8e-07/2.526, allocations: 3.656 kB / 0.9576 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01357/2.54, allocations: 2.41 MB / 0.9599 GB, free: 149.8 MB / 0.5138 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.001697/2.541, allocations: 284.3 kB / 0.9602 GB, free: 149.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01712/2.559, allocations: 12.39 MB / 0.9723 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-05/2.559, allocations: 4 kB / 0.9723 GB, free: 137.3 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006973/2.566, allocations: 5.1 MB / 0.9773 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007939/2.574, allocations: 1.014 MB / 0.9783 GB, free: 131.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0473/2.621, allocations: 26.85 MB / 1.004 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01097/2.632, allocations: 6.389 MB / 1.011 GB, free: 98.02 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.009221/2.641, allocations: 2.969 MB / 1.014 GB, free: 95.05 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/2.643, allocations: 431.4 kB / 1.014 GB, free: 94.62 MB / 0.5138 GB Notification: Performance of SimCode: time 1.302e-06/2.643, allocations: 4 kB / 1.014 GB, free: 94.62 MB / 0.5138 GB Notification: Performance of Templates: time 0.4289/3.072, allocations: 106.9 MB / 1.118 GB, free: 193.5 MB / 0.5138 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)