Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001224/0.001224, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001266/0.001266, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.405/1.405, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001209/0.001209, allocations: 55.92 kB / 280 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1045, allocations: 46.62 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02029/0.1248, allocations: 19.49 MB / 346.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01413/0.139, allocations: 5.994 MB / 352.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005016/0.144, allocations: 163.4 kB / 352.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01111/0.1552, allocations: 5.86 MB / 358.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.1658, allocations: 3.35 MB / 361.5 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.1702, allocations: 1.568 MB / 363 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0193/0.1895, allocations: 11.38 MB / 374.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2147/0.4043, allocations: 7.679 MB / 382.1 MB, free: 16.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007818/0.4121, allocations: 3.571 MB / 385.7 MB, free: 16.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008949/0.4211, allocations: 4.765 MB / 390.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003614/0.4247, allocations: 0.7146 MB / 391.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006013/0.4308, allocations: 1.67 MB / 392.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006918/0.4377, allocations: 4.234 MB / 397.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01046/0.4482, allocations: 4.479 MB / 401.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02109/0.4693, allocations: 13.36 MB / 414.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.4694, allocations: 3.562 kB / 414.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4694, allocations: 0 / 414.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006008/0.47, allocations: 3.719 kB / 414.9 MB, free: 6.051 MB / 318.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.02693/0.497, allocations: 9.692 MB / 424.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4971, allocations: 8.031 kB / 424.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04725/0.5443, allocations: 5.24 MB / 429.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01937/0.5637, allocations: 8.187 MB / 438 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003462/0.5641, allocations: 427.2 kB / 438.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002427/0.5665, allocations: 0.5812 MB / 439 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0325/0.599, allocations: 16.57 MB / 455.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002686/0.5994, allocations: 94.92 kB / 455.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007394/0.6001, allocations: 269.5 kB / 456 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004489/0.6046, allocations: 2.767 MB / 458.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02697/0.6316, allocations: 13.63 MB / 472.4 MB, free: 15.43 MB / 382.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.09149/0.7231, allocations: 67.97 MB / 0.5277 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02029/0.7434, allocations: 7.897 MB / 0.5354 GB, free: 2.195 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1826/0.9261, allocations: 4.5 MB / 0.5398 GB, free: 154.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02004/0.9461, allocations: 12.43 MB / 0.5519 GB, free: 149.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.9462, allocations: 68.09 kB / 0.552 GB, free: 149.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=280): time 6.372e-06/0.9463, allocations: 3.828 kB / 0.552 GB, free: 149.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=340): time 0.1667/1.113, allocations: 49.27 MB / 0.6001 GB, free: 118.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/1.113, allocations: 402 kB / 0.6005 GB, free: 118.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009882/1.123, allocations: 7.187 MB / 0.6075 GB, free: 111.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.124, allocations: 78.88 kB / 0.6076 GB, free: 111.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002802/1.127, allocations: 5.027 MB / 0.6125 GB, free: 106.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.129, allocations: 1.266 MB / 0.6137 GB, free: 104.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002469/1.131, allocations: 1.864 MB / 0.6155 GB, free: 103 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/1.131, allocations: 301.1 kB / 0.6158 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004998/1.136, allocations: 4.551 MB / 0.6203 GB, free: 98.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007189/1.143, allocations: 9.265 MB / 0.6293 GB, free: 86.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01364/1.157, allocations: 14.55 MB / 0.6435 GB, free: 69.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/1.157, allocations: 44 kB / 0.6436 GB, free: 69.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03578/1.193, allocations: 19.78 MB / 0.6629 GB, free: 49.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.193, allocations: 76 kB / 0.663 GB, free: 49.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001937/1.193, allocations: 160 kB / 0.6631 GB, free: 49.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0201/1.213, allocations: 7.046 MB / 0.67 GB, free: 42.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006055/1.219, allocations: 1.933 MB / 0.6719 GB, free: 40.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2389/1.458, allocations: 35.31 MB / 0.7064 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007942/1.466, allocations: 0.5837 MB / 0.7069 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001281/1.468, allocations: 0.4984 MB / 0.7074 GB, free: 127.7 MB / 446.1 MB 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.00668/1.474, allocations: 3.483 MB / 0.7108 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/1.476, allocations: 0.6351 MB / 0.7114 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.503, allocations: 13.32 MB / 0.7244 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.506e-05/1.503, allocations: 34.91 kB / 0.7245 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.519e-05/1.503, allocations: 19.16 kB / 0.7245 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.22e-05/1.503, allocations: 20.91 kB / 0.7245 GB, free: 122.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04532/1.549, allocations: 26.74 MB / 0.7506 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/1.549, allocations: 3.906 kB / 0.7506 GB, free: 110.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/1.551, allocations: 423.9 kB / 0.751 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01829/1.569, allocations: 6.656 MB / 0.7575 GB, free: 104.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006407/1.57, allocations: 71.73 kB / 0.7576 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03614/1.606, allocations: 34.01 MB / 0.7908 GB, free: 70.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/1.606, allocations: 15.66 kB / 0.7908 GB, free: 70.26 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.029/1.635, allocations: 18.76 MB / 0.8091 GB, free: 51.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003562/1.638, allocations: 1.395 MB / 0.8105 GB, free: 50.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001228/1.64, allocations: 61.8 kB / 0.8106 GB, free: 50.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003417/1.643, allocations: 311.4 kB / 0.8109 GB, free: 50.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008888/1.644, allocations: 242.1 kB / 0.8111 GB, free: 49.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.644, allocations: 91.98 kB / 0.8112 GB, free: 49.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00611/1.65, allocations: 4.603 MB / 0.8157 GB, free: 45.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/1.65, allocations: 2.344 kB / 0.8157 GB, free: 45.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008146/1.658, allocations: 2.142 MB / 0.8178 GB, free: 42.98 MB / 446.1 MB 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.0005896/1.659, allocations: 222.7 kB / 0.818 GB, free: 42.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01968/1.679, allocations: 14.45 MB / 0.8321 GB, free: 28.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.679, allocations: 8 kB / 0.8321 GB, free: 28.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007505/1.686, allocations: 5.008 MB / 0.837 GB, free: 23.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005795/1.692, allocations: 0.9944 MB / 0.838 GB, free: 22.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2146/1.907, allocations: 19.85 MB / 0.8573 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009637/1.916, allocations: 5.556 MB / 0.8628 GB, free: 130.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007871/1.924, allocations: 2.61 MB / 0.8653 GB, free: 130.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/1.926, allocations: 395 kB / 0.8657 GB, free: 130.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/1.926, allocations: 0 / 0.8657 GB, free: 130.7 MB / 446.1 MB Notification: Performance of Templates: time 0.1581/2.084, allocations: 99.25 MB / 0.9626 GB, free: 54.88 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)