Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.376/1.376, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001161/0.001161, allocations: 55.92 kB / 278.7 MB, free: 12.33 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2171, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02015/0.2373, allocations: 20.6 MB / 345.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.2522, allocations: 6.215 MB / 352.1 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005456/0.2577, allocations: 167.4 kB / 352.3 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01239/0.2702, allocations: 6.355 MB / 358.6 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.2806, allocations: 3.455 MB / 362.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003994/0.2846, allocations: 1.658 MB / 363.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01636/0.301, allocations: 11.67 MB / 375.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01319/0.3143, allocations: 8.088 MB / 383.5 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007662/0.3219, allocations: 3.759 MB / 387.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007796/0.3298, allocations: 4.986 MB / 392.3 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003068/0.3329, allocations: 0.7539 MB / 393 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004829/0.3377, allocations: 1.701 MB / 394.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006425/0.3442, allocations: 4.388 MB / 399.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007678/0.3519, allocations: 4.67 MB / 403.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.3675, allocations: 13.88 MB / 417.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/0.3676, allocations: 0 / 417.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3676, allocations: 0 / 417.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004957/0.3681, allocations: 4 kB / 417.7 MB, free: 7.223 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03051/0.3986, allocations: 10.06 MB / 427.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.3987, allocations: 8.031 kB / 427.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04756/0.4463, allocations: 5.283 MB / 433 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02201/0.4683, allocations: 8.373 MB / 441.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005287/0.4689, allocations: 444 kB / 441.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003263/0.4722, allocations: 0.6243 MB / 442.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3916/0.8638, allocations: 17.13 MB / 459.6 MB, free: 99.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009776/0.8648, allocations: 99.7 kB / 459.7 MB, free: 99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002387/0.8672, allocations: 278.8 kB / 459.9 MB, free: 98.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005626/0.8729, allocations: 2.856 MB / 462.8 MB, free: 98.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03185/0.9047, allocations: 14.03 MB / 476.8 MB, free: 92.29 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.08884/0.9936, allocations: 69.44 MB / 0.5335 GB, free: 23.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01813/1.012, allocations: 7.467 MB / 0.5407 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005604/1.017, allocations: 4.459 MB / 0.5451 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02187/1.039, allocations: 12.76 MB / 0.5576 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.32e-05/1.039, allocations: 68.56 kB / 0.5576 GB, free: 14.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=293): time 8.466e-06/1.04, allocations: 0 / 0.5576 GB, free: 14.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=365): time 0.1582/1.198, allocations: 43.53 MB / 0.6001 GB, free: 2.656 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002692/1.198, allocations: 410.2 kB / 0.6005 GB, free: 2.168 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.261/1.459, allocations: 7.378 MB / 0.6077 GB, free: 137.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001448/1.461, allocations: 82.7 kB / 0.6078 GB, free: 137.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005356/1.466, allocations: 5.242 MB / 0.6129 GB, free: 134.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003069/1.469, allocations: 1.344 MB / 0.6142 GB, free: 133.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008133/1.477, allocations: 1.94 MB / 0.6161 GB, free: 132.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/1.477, allocations: 308.9 kB / 0.6164 GB, free: 132.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00708/1.484, allocations: 4.281 MB / 0.6206 GB, free: 131.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008977/1.494, allocations: 9.195 MB / 0.6296 GB, free: 123.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01471/1.508, allocations: 14.24 MB / 0.6435 GB, free: 112.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002004/1.509, allocations: 52.31 kB / 0.6435 GB, free: 112.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03176/1.54, allocations: 18 MB / 0.6611 GB, free: 97.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/1.54, allocations: 80 kB / 0.6612 GB, free: 97.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.541, allocations: 164 kB / 0.6614 GB, free: 97 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01688/1.558, allocations: 5.345 MB / 0.6666 GB, free: 91.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006588/1.564, allocations: 2.008 MB / 0.6685 GB, free: 89.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03516/1.599, allocations: 31.12 MB / 0.6989 GB, free: 58.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009549/1.609, allocations: 0.5575 MB / 0.6995 GB, free: 57.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002128/1.611, allocations: 0.5156 MB / 0.7 GB, free: 57.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 72 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.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 (1102): * Single equations (assignments): 1096 * 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 {(6,100,72.2%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.009622/1.621, allocations: 3.612 MB / 0.7035 GB, free: 53.39 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00198/1.623, allocations: 0.6595 MB / 0.7042 GB, free: 52.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02086/1.644, allocations: 11.26 MB / 0.7152 GB, free: 41.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.849e-05/1.644, allocations: 36 kB / 0.7152 GB, free: 41.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.21e-05/1.644, allocations: 20 kB / 0.7152 GB, free: 41.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.728e-05/1.644, allocations: 23.94 kB / 0.7152 GB, free: 41.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03711/1.681, allocations: 22.17 MB / 0.7369 GB, free: 18.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.701e-05/1.681, allocations: 11.94 kB / 0.7369 GB, free: 18.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002217/1.683, allocations: 447.3 kB / 0.7373 GB, free: 18.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01429/1.698, allocations: 5.027 MB / 0.7422 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009482/1.699, allocations: 68.28 kB / 0.7423 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2735/1.972, allocations: 30.52 MB / 0.7721 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.996e-06/1.972, allocations: 16.47 kB / 0.7721 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02689/1.999, allocations: 16.49 MB / 0.7882 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004442/2.004, allocations: 1.342 MB / 0.7895 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001891/2.005, allocations: 67.47 kB / 0.7896 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004495/2.01, allocations: 261 kB / 0.7898 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001232/2.011, allocations: 272.7 kB / 0.7901 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002996/2.012, allocations: 100.6 kB / 0.7902 GB, free: 127.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007849/2.019, allocations: 4.73 MB / 0.7948 GB, free: 125.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.01e-07/2.019, allocations: 0 / 0.7948 GB, free: 125.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01123/2.031, allocations: 2.183 MB / 0.797 GB, free: 125.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(5,96,72.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/2.032, allocations: 223.7 kB / 0.7972 GB, free: 125.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0226/2.055, allocations: 14.31 MB / 0.8111 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.514e-05/2.055, allocations: 0 / 0.8111 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006154/2.061, allocations: 4.476 MB / 0.8155 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007038/2.068, allocations: 1.026 MB / 0.8165 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/2.101, allocations: 19.58 MB / 0.8356 GB, free: 90.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008027/2.109, allocations: 5.764 MB / 0.8413 GB, free: 84.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006866/2.116, allocations: 2.744 MB / 0.844 GB, free: 81.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/2.117, allocations: 415.4 kB / 0.8443 GB, free: 81.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.352e-06/2.117, allocations: 0 / 0.8443 GB, free: 81.27 MB / 446.1 MB Notification: Performance of Templates: time 0.3337/2.451, allocations: 98.51 MB / 0.9405 GB, free: 128 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)