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.007714/0.007714, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001297/0.001297, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.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.001267/0.001267, allocations: 54.28 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.129, 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.02472/0.1538, allocations: 23.45 MB / 396.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.1724, allocations: 7.084 MB / 403.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007113/0.1796, allocations: 183.4 kB / 403.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01546/0.1951, allocations: 7.948 MB / 411.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0134/0.2086, allocations: 3.704 MB / 415.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005593/0.2142, allocations: 2.016 MB / 417.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0199/0.2342, allocations: 12.25 MB / 429.8 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01728/0.2515, allocations: 10.46 MB / 440.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009787/0.2613, allocations: 4.293 MB / 444.6 MB, free: 9.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01096/0.2723, allocations: 5.734 MB / 450.3 MB, free: 3.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00424/0.2766, allocations: 1.004 MB / 451.3 MB, free: 2.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006964/0.2836, allocations: 2.158 MB / 453.5 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2731/0.5568, allocations: 5.129 MB / 458.6 MB, free: 23.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02137/0.5782, allocations: 5.426 MB / 464 MB, free: 21.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0326/0.6109, allocations: 17.28 MB / 481.3 MB, free: 19.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.6109, allocations: 0 / 481.3 MB, free: 19.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.611, allocations: 0 / 481.3 MB, free: 19.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007346/0.6117, allocations: 0 / 481.3 MB, free: 19.65 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.04428/0.656, allocations: 11.23 MB / 492.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.6561, allocations: 11.38 kB / 492.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04372/0.6998, allocations: 5.417 MB / 498 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0231/0.7229, allocations: 9.34 MB / 0.4954 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005668/0.7236, allocations: 0.5242 MB / 0.4959 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00436/0.7279, allocations: 0.7322 MB / 0.4966 GB, free: 4.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0545/0.7825, allocations: 19.52 MB / 0.5157 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008338/0.7834, allocations: 95.64 kB / 0.5158 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004339/0.7877, allocations: 325.5 kB / 0.5161 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005261/0.793, allocations: 2.821 MB / 0.5189 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04342/0.8365, allocations: 16.24 MB / 0.5347 GB, free: 15.33 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.1348/0.9713, allocations: 74.18 MB / 0.6072 GB, free: 4.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02411/0.9954, allocations: 8.468 MB / 0.6154 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007946/1.003, allocations: 4.765 MB / 0.6201 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03082/1.034, allocations: 15.41 MB / 0.6351 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.784e-05/1.034, allocations: 68.66 kB / 0.6352 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=319): time 7.745e-06/1.034, allocations: 3.562 kB / 0.6352 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.447/1.481, allocations: 50.45 MB / 0.6845 GB, free: 173.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/1.482, allocations: 402.7 kB / 0.6849 GB, free: 172.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01641/1.498, allocations: 7.65 MB / 0.6923 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001413/1.499, allocations: 97.16 kB / 0.6924 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.005011/1.504, allocations: 5.615 MB / 0.6979 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002786/1.507, allocations: 1.536 MB / 0.6994 GB, free: 158 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00382/1.511, allocations: 2.084 MB / 0.7014 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.84e-05/1.511, allocations: 301.1 kB / 0.7017 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006466/1.518, allocations: 5.119 MB / 0.7067 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009224/1.527, allocations: 10.2 MB / 0.7167 GB, free: 137.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01781/1.545, allocations: 16.15 MB / 0.7324 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.545, allocations: 48 kB / 0.7325 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04097/1.586, allocations: 20.85 MB / 0.7529 GB, free: 98.37 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001915/1.586, allocations: 83.94 kB / 0.7529 GB, free: 98.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002518/1.586, allocations: 173.1 kB / 0.7531 GB, free: 98.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01839/1.605, allocations: 6.459 MB / 0.7594 GB, free: 91.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007362/1.612, allocations: 2.152 MB / 0.7615 GB, free: 89.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0471/1.659, allocations: 33.58 MB / 0.7943 GB, free: 55.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01073/1.67, allocations: 0.6201 MB / 0.7949 GB, free: 55.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002473/1.673, allocations: 0.5351 MB / 0.7954 GB, free: 54.62 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.01073/1.683, allocations: 4.103 MB / 0.7994 GB, free: 50.51 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002514/1.686, allocations: 0.6942 MB / 0.8001 GB, free: 49.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02957/1.716, allocations: 13.84 MB / 0.8136 GB, free: 35.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.255e-05/1.716, allocations: 45.17 kB / 0.8137 GB, free: 35.87 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.85e-05/1.716, allocations: 20 kB / 0.8137 GB, free: 35.85 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.258e-05/1.716, allocations: 27.92 kB / 0.8137 GB, free: 35.82 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3322/2.048, allocations: 27.02 MB / 0.8401 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-05/2.048, allocations: 6.938 kB / 0.8401 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/2.051, allocations: 0.549 MB / 0.8407 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01754/2.068, allocations: 5.952 MB / 0.8465 GB, free: 165.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001329/2.07, allocations: 80.36 kB / 0.8465 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03901/2.109, allocations: 30.27 MB / 0.8761 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.918e-06/2.109, allocations: 12.88 kB / 0.8761 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03534/2.144, allocations: 19.99 MB / 0.8956 GB, free: 133 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005488/2.15, allocations: 1.536 MB / 0.8971 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002812/2.152, allocations: 79.94 kB / 0.8972 GB, free: 131.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005241/2.158, allocations: 315.2 kB / 0.8975 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001595/2.159, allocations: 295 kB / 0.8978 GB, free: 131.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007279/2.16, allocations: 116.5 kB / 0.8979 GB, free: 131 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.01132/2.171, allocations: 4.894 MB / 0.9027 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.31e-07/2.171, allocations: 0 / 0.9027 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0146/2.186, allocations: 2.41 MB / 0.905 GB, free: 123.8 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.001825/2.188, allocations: 287.8 kB / 0.9053 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02011/2.208, allocations: 12.44 MB / 0.9175 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/2.208, allocations: 4.984 kB / 0.9175 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.008252/2.216, allocations: 5.098 MB / 0.9224 GB, free: 106.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01412/2.23, allocations: 1.078 MB / 0.9235 GB, free: 105 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0507/2.281, allocations: 22.44 MB / 0.9454 GB, free: 82.68 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01069/2.292, allocations: 6.389 MB / 0.9517 GB, free: 76.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007762/2.3, allocations: 2.958 MB / 0.9545 GB, free: 73.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001823/2.302, allocations: 435.4 kB / 0.955 GB, free: 72.88 MB / 0.5137 GB Notification: Performance of SimCode: time 1.343e-06/2.302, allocations: 0 / 0.955 GB, free: 72.88 MB / 0.5137 GB Notification: Performance of Templates: time 0.4744/2.776, allocations: 106 MB / 1.058 GB, free: 146.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)