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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001155/0.001156, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.233/1.233, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001675/0.001675, allocations: 99.52 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.388e-05/2.391e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07649/0.07653, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2809/0.3575, allocations: 86.44 MB / 394.1 MB, free: 6.129 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.3578, allocations: 82.33 kB / 394.2 MB, free: 6.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5822/0.9399, allocations: 165.2 MB / 0.5463 GB, free: 40.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.94, allocations: 0 / 0.5463 GB, free: 40.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006464/0.9407, allocations: 168 kB / 0.5465 GB, free: 40.82 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.02826/0.9689, allocations: 8.177 MB / 0.5544 GB, free: 32.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.969, allocations: 8.031 kB / 0.5544 GB, free: 32.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05937/1.028, allocations: 16.56 MB / 0.5706 GB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03189/1.06, allocations: 13.76 MB / 0.5841 GB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004258/1.061, allocations: 0.5535 MB / 0.5846 GB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/1.064, allocations: 0.7612 MB / 0.5853 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4728/1.537, allocations: 16.81 MB / 0.6018 GB, free: 40.02 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004736/1.537, allocations: 107.1 kB / 0.6019 GB, free: 40.02 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001433/1.539, allocations: 351.7 kB / 0.6022 GB, free: 40.02 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002057/1.541, allocations: 1.527 MB / 0.6037 GB, free: 40 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02998/1.571, allocations: 13.13 MB / 0.6165 GB, free: 39.94 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09281/1.664, allocations: 74.76 MB / 0.6895 GB, free: 5.246 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01761/1.681, allocations: 7.018 MB / 0.6964 GB, free: 1.27 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01392/1.695, allocations: 4.69 MB / 0.701 GB, free: 15.65 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01995/1.715, allocations: 11.94 MB / 0.7126 GB, free: 5.484 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.821e-05/1.715, allocations: 70.83 kB / 0.7127 GB, free: 5.414 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 5.951e-06/1.715, allocations: 0 / 0.7127 GB, free: 5.414 MB / 378.8 MB Notification: Performance of matching and sorting (n=366): time 0.3884/2.104, allocations: 35.6 MB / 0.7474 GB, free: 84.9 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/2.104, allocations: 407.8 kB / 0.7478 GB, free: 84.46 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01395/2.118, allocations: 6.358 MB / 0.754 GB, free: 83.94 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001316/2.119, allocations: 82.06 kB / 0.7541 GB, free: 83.91 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005159/2.124, allocations: 5.436 MB / 0.7594 GB, free: 81.7 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001969/2.126, allocations: 1.337 MB / 0.7607 GB, free: 80.91 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006213/2.127, allocations: 181 kB / 0.7609 GB, free: 80.91 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0003989/2.127, allocations: 0.6701 MB / 0.7616 GB, free: 80.58 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004676/2.132, allocations: 3.465 MB / 0.7649 GB, free: 80.56 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006587/2.139, allocations: 8.324 MB / 0.7731 GB, free: 74.36 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007027/2.146, allocations: 5.3 MB / 0.7782 GB, free: 74.29 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/2.146, allocations: 49.5 kB / 0.7783 GB, free: 74.29 MB / 394.8 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.02612/2.172, allocations: 14.8 MB / 0.7928 GB, free: 70.75 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/2.172, allocations: 83.27 kB / 0.7928 GB, free: 70.75 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000166/2.172, allocations: 169.3 kB / 0.793 GB, free: 70.75 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/2.183, allocations: 3.73 MB / 0.7966 GB, free: 70.04 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006339/2.189, allocations: 1.859 MB / 0.7985 GB, free: 69.82 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02906/2.218, allocations: 23.8 MB / 0.8217 GB, free: 58.19 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008664/2.227, allocations: 499.6 kB / 0.8222 GB, free: 58.03 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001759/2.229, allocations: 0.4931 MB / 0.8227 GB, free: 57.92 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * Number of states: 0 () * Number of discrete variables: 69 (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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 995 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0016/2.23, allocations: 0.7679 MB / 0.8234 GB, free: 57.16 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001883/2.232, allocations: 0.6903 MB / 0.8241 GB, free: 56.46 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01661/2.249, allocations: 8.852 MB / 0.8327 GB, free: 49.44 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.975e-05/2.249, allocations: 40 kB / 0.8328 GB, free: 49.4 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-05/2.249, allocations: 16 kB / 0.8328 GB, free: 49.39 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.606e-05/2.249, allocations: 21.48 kB / 0.8328 GB, free: 49.38 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03947/2.288, allocations: 19.45 MB / 0.8518 GB, free: 33.57 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.817e-05/2.288, allocations: 8 kB / 0.8518 GB, free: 33.56 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/2.291, allocations: 450.3 kB / 0.8522 GB, free: 33.19 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009883/2.301, allocations: 3.492 MB / 0.8556 GB, free: 30.67 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001095/2.302, allocations: 68 kB / 0.8557 GB, free: 30.6 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02945/2.331, allocations: 23.2 MB / 0.8784 GB, free: 10.61 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2718/2.603, allocations: 11.3 kB / 0.8784 GB, free: 75.27 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02442/2.628, allocations: 14.94 MB / 0.893 GB, free: 72.64 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003734/2.631, allocations: 1.228 MB / 0.8941 GB, free: 72.55 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009805/2.632, allocations: 72.2 kB / 0.8942 GB, free: 72.55 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/2.635, allocations: 212.6 kB / 0.8944 GB, free: 72.55 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007587/2.636, allocations: 266.6 kB / 0.8947 GB, free: 72.54 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/2.636, allocations: 103.4 kB / 0.8948 GB, free: 72.54 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007521/2.644, allocations: 4.574 MB / 0.8992 GB, free: 72.29 MB / 394.8 MB Notification: Performance of sort global known variables: time 8.61e-07/2.644, allocations: 0 / 0.8992 GB, free: 72.29 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01002/2.654, allocations: 2.011 MB / 0.9012 GB, free: 72.29 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 237 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006964/2.654, allocations: 223.5 kB / 0.9014 GB, free: 72.21 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01321/2.668, allocations: 9.251 MB / 0.9105 GB, free: 71.72 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/2.668, allocations: 4.656 kB / 0.9105 GB, free: 71.72 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006054/2.674, allocations: 4.131 MB / 0.9145 GB, free: 71.26 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005392/2.679, allocations: 1.023 MB / 0.9155 GB, free: 71.22 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/2.705, allocations: 15.34 MB / 0.9305 GB, free: 67.82 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00578/2.711, allocations: 5.934 MB / 0.9363 GB, free: 66 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.006936/2.718, allocations: 2.785 MB / 0.939 GB, free: 65.94 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/2.719, allocations: 415 kB / 0.9394 GB, free: 65.93 MB / 394.8 MB Notification: Performance of SimCode: time 9.81e-07/2.719, allocations: 0 / 0.9394 GB, free: 65.93 MB / 394.8 MB Notification: Performance of Templates: time 0.1294/2.848, allocations: 83.46 MB / 1.021 GB, free: 15.7 MB / 410.8 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)