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.007255/0.007255, allocations: 101.2 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.001665/0.001665, allocations: 194.1 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.459/1.459, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001337/0.001337, allocations: 50.36 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, 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.02298/0.1288, allocations: 23.45 MB / 396.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01637/0.1452, allocations: 7.08 MB / 403.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00595/0.1513, allocations: 183.4 kB / 403.9 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0148/0.1661, allocations: 7.944 MB / 411.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.1771, allocations: 3.595 MB / 415.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005123/0.1823, allocations: 2.028 MB / 417.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01696/0.1993, allocations: 12.24 MB / 429.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01567/0.215, allocations: 10.46 MB / 440.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008818/0.2238, allocations: 4.293 MB / 444.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.2344, allocations: 5.726 MB / 450.2 MB, free: 3.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004717/0.2392, allocations: 1.004 MB / 451.2 MB, free: 2.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007445/0.2466, allocations: 2.154 MB / 453.4 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2355/0.4822, allocations: 5.134 MB / 458.5 MB, free: 23.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01261/0.4948, allocations: 5.425 MB / 463.9 MB, free: 21.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02894/0.5238, allocations: 17.28 MB / 481.2 MB, free: 19.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.5239, allocations: 0 / 481.2 MB, free: 19.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5239, allocations: 2.844 kB / 481.2 MB, free: 19.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007923/0.5247, allocations: 3.25 kB / 481.2 MB, free: 19.7 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.04043/0.5651, allocations: 11.22 MB / 492.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.5652, allocations: 7.656 kB / 492.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04935/0.6146, allocations: 5.422 MB / 497.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02416/0.6388, allocations: 9.348 MB / 0.4953 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005627/0.6394, allocations: 0.5217 MB / 0.4958 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005107/0.6445, allocations: 0.7311 MB / 0.4965 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05385/0.6984, allocations: 19.51 MB / 0.5156 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004759/0.6989, allocations: 96.11 kB / 0.5157 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002953/0.7019, allocations: 327.4 kB / 0.516 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004772/0.7066, allocations: 2.814 MB / 0.5187 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04062/0.7473, allocations: 16.25 MB / 0.5346 GB, free: 15.37 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.1209/0.8683, allocations: 74.18 MB / 0.607 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0237/0.892, allocations: 8.476 MB / 0.6153 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007369/0.8994, allocations: 4.762 MB / 0.62 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03293/0.9324, allocations: 15.41 MB / 0.635 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.644e-05/0.9325, allocations: 79.83 kB / 0.6351 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=319): time 6.963e-06/0.9326, allocations: 0 / 0.6351 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.4083/1.341, allocations: 50.44 MB / 0.6844 GB, free: 173.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.341, allocations: 414.4 kB / 0.6847 GB, free: 172.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/1.353, allocations: 7.646 MB / 0.6922 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001411/1.354, allocations: 95.27 kB / 0.6923 GB, free: 165.1 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003229/1.358, allocations: 5.612 MB / 0.6978 GB, free: 159.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002228/1.36, allocations: 1.535 MB / 0.6993 GB, free: 158 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003123/1.363, allocations: 2.084 MB / 0.7013 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.866e-05/1.363, allocations: 301.1 kB / 0.7016 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006308/1.369, allocations: 5.123 MB / 0.7066 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008624/1.378, allocations: 10.2 MB / 0.7166 GB, free: 137.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01634/1.394, allocations: 16.14 MB / 0.7323 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/1.394, allocations: 48.69 kB / 0.7324 GB, free: 119.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.04096/1.435, allocations: 20.86 MB / 0.7527 GB, free: 98.37 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.611e-05/1.436, allocations: 80.88 kB / 0.7528 GB, free: 98.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.436, allocations: 172 kB / 0.753 GB, free: 98.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01879/1.455, allocations: 6.462 MB / 0.7593 GB, free: 91.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008126/1.463, allocations: 2.148 MB / 0.7614 GB, free: 89.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04169/1.504, allocations: 33.57 MB / 0.7942 GB, free: 55.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01035/1.515, allocations: 0.6169 MB / 0.7948 GB, free: 55.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002213/1.517, allocations: 0.5399 MB / 0.7953 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.01016/1.527, allocations: 4.102 MB / 0.7993 GB, free: 50.51 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/1.529, allocations: 0.6942 MB / 0.8 GB, free: 49.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02707/1.556, allocations: 13.84 MB / 0.8135 GB, free: 35.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.543e-05/1.557, allocations: 44 kB / 0.8136 GB, free: 35.87 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.983e-05/1.557, allocations: 28 kB / 0.8136 GB, free: 35.84 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.755e-05/1.557, allocations: 19.92 kB / 0.8136 GB, free: 35.82 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3204/1.877, allocations: 27.02 MB / 0.84 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.557e-05/1.877, allocations: 7.469 kB / 0.84 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/1.88, allocations: 0.5464 MB / 0.8405 GB, free: 165.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01879/1.899, allocations: 5.95 MB / 0.8463 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001417/1.9, allocations: 83.61 kB / 0.8464 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03776/1.938, allocations: 30.28 MB / 0.876 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/1.938, allocations: 11.94 kB / 0.876 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03616/1.974, allocations: 19.99 MB / 0.8955 GB, free: 132.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006072/1.98, allocations: 1.535 MB / 0.897 GB, free: 131.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002226/1.983, allocations: 83.92 kB / 0.8971 GB, free: 131.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004544/1.987, allocations: 311.5 kB / 0.8974 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001062/1.988, allocations: 294.5 kB / 0.8977 GB, free: 131.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003401/1.989, allocations: 116 kB / 0.8978 GB, free: 131 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007581/1.996, allocations: 4.899 MB / 0.9026 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/1.996, allocations: 0 / 0.9026 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01183/2.008, allocations: 2.408 MB / 0.9049 GB, free: 123.7 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.001131/2.009, allocations: 285.3 kB / 0.9052 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01685/2.026, allocations: 12.44 MB / 0.9173 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/2.026, allocations: 4 kB / 0.9173 GB, free: 111.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006772/2.033, allocations: 5.104 MB / 0.9223 GB, free: 106 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009753/2.043, allocations: 1.071 MB / 0.9234 GB, free: 105 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03978/2.082, allocations: 22.45 MB / 0.9453 GB, free: 82.65 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007771/2.09, allocations: 6.389 MB / 0.9515 GB, free: 76.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006608/2.097, allocations: 2.957 MB / 0.9544 GB, free: 73.28 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/2.098, allocations: 431.4 kB / 0.9548 GB, free: 72.86 MB / 0.5137 GB Notification: Performance of SimCode: time 1.372e-06/2.098, allocations: 0 / 0.9548 GB, free: 72.86 MB / 0.5137 GB Notification: Performance of Templates: time 0.4799/2.578, allocations: 107.1 MB / 1.059 GB, free: 144.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)