Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009202/0.0009244, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.006728/0.006728, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.494/1.494, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004574/0.000458, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2626, allocations: 47.59 MB / 327 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.09696/0.3596, allocations: 101 MB / 428.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05288/0.4125, allocations: 19.9 MB / 448 MB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0267/0.4392, allocations: 466.8 kB / 448.4 MB, free: 9.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004447/0.4438, allocations: 0.7149 MB / 449.1 MB, free: 8.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01469/0.4585, allocations: 3.2 MB / 452.3 MB, free: 5.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006331/0.4648, allocations: 1.447 MB / 453.8 MB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3138/0.7787, allocations: 15.88 MB / 469.6 MB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01504/0.7938, allocations: 10.31 MB / 480 MB, free: 2.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005981/0.7998, allocations: 2.716 MB / 482.7 MB, free: 2.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00773/0.8076, allocations: 4.465 MB / 487.1 MB, free: 1.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00239/0.81, allocations: 280.4 kB / 487.4 MB, free: 1.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005123/0.8152, allocations: 1.297 MB / 488.7 MB, free: 1.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005882/0.8211, allocations: 3.752 MB / 492.5 MB, free: 0 / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009061/0.8302, allocations: 3.881 MB / 496.3 MB, free: 14.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01935/0.8496, allocations: 12.74 MB / 0.4972 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.277e-05/0.8497, allocations: 4 kB / 0.4972 GB, free: 6.363 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.8497, allocations: 0 / 0.4972 GB, free: 6.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006641/0.8504, allocations: 0 / 0.4972 GB, free: 6.363 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02356/0.874, allocations: 8.03 MB / 0.505 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.874, allocations: 8.031 kB / 0.505 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04805/0.9221, allocations: 5.358 MB / 0.5102 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/0.9438, allocations: 8.197 MB / 0.5182 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003417/0.9442, allocations: 424.2 kB / 0.5186 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002046/0.9463, allocations: 0.5862 MB / 0.5192 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0326/0.9789, allocations: 16.62 MB / 0.5354 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003451/0.9793, allocations: 101.8 kB / 0.5355 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001064/0.9803, allocations: 266.2 kB / 0.5358 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/0.9849, allocations: 2.767 MB / 0.5385 GB, free: 14.67 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/1.016, allocations: 13.7 MB / 0.5519 GB, free: 1.23 MB / 446.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.08907/1.105, allocations: 68.04 MB / 0.6183 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0205/1.125, allocations: 7.933 MB / 0.6261 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4009/1.526, allocations: 4.505 MB / 0.6305 GB, free: 236.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01987/1.546, allocations: 12.43 MB / 0.6426 GB, free: 233.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/1.546, allocations: 70.81 kB / 0.6427 GB, free: 233.1 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=280): time 7.293e-06/1.546, allocations: 0 / 0.6427 GB, free: 233.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=340): time 0.1671/1.713, allocations: 50.11 MB / 0.6916 GB, free: 196.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/1.714, allocations: 398.1 kB / 0.692 GB, free: 196.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/1.725, allocations: 7.194 MB / 0.699 GB, free: 188.9 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001083/1.726, allocations: 77.7 kB / 0.6991 GB, free: 188.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003195/1.73, allocations: 5.028 MB / 0.704 GB, free: 183.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001834/1.731, allocations: 1.257 MB / 0.7052 GB, free: 182.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/1.733, allocations: 0.8111 MB / 0.706 GB, free: 181.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.974e-05/1.733, allocations: 301.1 kB / 0.7063 GB, free: 181.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005654/1.739, allocations: 4.543 MB / 0.7107 GB, free: 176.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00833/1.747, allocations: 9.275 MB / 0.7198 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01602/1.763, allocations: 14.53 MB / 0.734 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001702/1.763, allocations: 48 kB / 0.734 GB, free: 148.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03995/1.803, allocations: 19.77 MB / 0.7533 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/1.803, allocations: 79.98 kB / 0.7534 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/1.804, allocations: 160 kB / 0.7536 GB, free: 128.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0202/1.824, allocations: 7.053 MB / 0.7605 GB, free: 121.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006234/1.83, allocations: 1.934 MB / 0.7624 GB, free: 119.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03922/1.869, allocations: 33.22 MB / 0.7948 GB, free: 85.76 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009677/1.879, allocations: 0.5941 MB / 0.7954 GB, free: 85.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001966/1.881, allocations: 496 kB / 0.7959 GB, free: 84.68 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (1049): * Single equations (assignments): 1043 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,93,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007745/1.889, allocations: 3.489 MB / 0.7993 GB, free: 81.18 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001639/1.89, allocations: 0.6364 MB / 0.7999 GB, free: 80.54 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02753/1.918, allocations: 13.33 MB / 0.8129 GB, free: 67.13 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.136e-05/1.918, allocations: 40.64 kB / 0.8129 GB, free: 67.09 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.485e-05/1.918, allocations: 20.56 kB / 0.813 GB, free: 67.07 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.348e-05/1.918, allocations: 15.94 kB / 0.813 GB, free: 67.05 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04957/1.968, allocations: 26.75 MB / 0.8391 GB, free: 39.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-05/1.968, allocations: 4.75 kB / 0.8391 GB, free: 39.79 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001965/1.97, allocations: 427.3 kB / 0.8395 GB, free: 39.38 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01945/1.989, allocations: 6.68 MB / 0.846 GB, free: 32.68 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001062/1.99, allocations: 63.94 kB / 0.8461 GB, free: 32.62 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2818/2.272, allocations: 31.97 MB / 0.8773 GB, free: 210 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/2.272, allocations: 7.938 kB / 0.8773 GB, free: 210 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0345/2.307, allocations: 18.77 MB / 0.8957 GB, free: 203.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004876/2.312, allocations: 1.398 MB / 0.897 GB, free: 203.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002574/2.314, allocations: 63.55 kB / 0.8971 GB, free: 203.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00538/2.32, allocations: 316.8 kB / 0.8974 GB, free: 203.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001217/2.321, allocations: 246.2 kB / 0.8976 GB, free: 203.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000313/2.321, allocations: 84.84 kB / 0.8977 GB, free: 203.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008971/2.33, allocations: 4.611 MB / 0.9022 GB, free: 201.5 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.41e-07/2.33, allocations: 0 / 0.9022 GB, free: 201.5 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01178/2.342, allocations: 2.142 MB / 0.9043 GB, free: 201 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,87,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/2.343, allocations: 218.3 kB / 0.9045 GB, free: 200.8 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01891/2.362, allocations: 11.58 MB / 0.9158 GB, free: 189.3 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/2.362, allocations: 4 kB / 0.9158 GB, free: 189.3 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008873/2.371, allocations: 5.002 MB / 0.9207 GB, free: 184.3 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01394/2.385, allocations: 0.9364 MB / 0.9216 GB, free: 183.4 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03901/2.424, allocations: 23.48 MB / 0.9445 GB, free: 160.1 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008233/2.432, allocations: 5.555 MB / 0.95 GB, free: 154.6 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007587/2.44, allocations: 2.608 MB / 0.9525 GB, free: 152 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/2.442, allocations: 391.4 kB / 0.9529 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of SimCode: time 1.523e-06/2.442, allocations: 0 / 0.9529 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of Templates: time 0.1486/2.591, allocations: 93.4 MB / 1.044 GB, free: 58.11 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)