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.001868/0.001868, allocations: 156.2 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.293/1.293, allocations: 170.7 MB / 178.7 MB, free: 7.043 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.00167/0.00167, allocations: 111.2 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.897e-05/1.899e-05, allocations: 8 kB / 262.2 MB, free: 3.055 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2208, allocations: 38.77 MB / 301 MB, free: 39.14 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.3423, allocations: 85.77 MB / 386.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.3426, allocations: 90.84 kB / 386.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5784/0.921, allocations: 161.9 MB / 0.5358 GB, free: 2.082 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.9211, allocations: 0 / 0.5358 GB, free: 2.082 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007478/0.9219, allocations: 171.9 kB / 0.536 GB, free: 1.914 MB / 330.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.02778/0.9496, allocations: 8.2 MB / 0.544 GB, free: 9.633 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.9497, allocations: 8.031 kB / 0.544 GB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4575/1.407, allocations: 16.56 MB / 0.5602 GB, free: 38.38 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03338/1.441, allocations: 13.72 MB / 0.5736 GB, free: 37.74 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006737/1.441, allocations: 243.5 kB / 0.5738 GB, free: 37.74 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004887/1.446, allocations: 476.4 kB / 0.5743 GB, free: 37.72 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02248/1.469, allocations: 9.863 MB / 0.5839 GB, free: 37.69 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03035/1.499, allocations: 14.78 MB / 0.5983 GB, free: 34.12 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004423/1.5, allocations: 116.6 kB / 0.5985 GB, free: 34.11 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001632/1.501, allocations: 40.28 kB / 0.5985 GB, free: 34.11 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0024/1.504, allocations: 1.527 MB / 0.6 GB, free: 34.09 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08414/1.588, allocations: 72.58 MB / 0.6709 GB, free: 14.38 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007436/1.595, allocations: 5.395 MB / 0.6761 GB, free: 9.309 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004581/1.6, allocations: 3.816 MB / 0.6799 GB, free: 5.781 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00139/1.601, allocations: 1.384 MB / 0.6812 GB, free: 4.262 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.154e-05/1.602, allocations: 68.5 kB / 0.6813 GB, free: 4.184 MB / 378.8 MB Notification: Performance of pre-optimization done (n=299): time 6.041e-06/1.602, allocations: 0 / 0.6813 GB, free: 4.184 MB / 378.8 MB Notification: Performance of matching and sorting (n=371): time 0.3288/1.93, allocations: 36.05 MB / 0.7165 GB, free: 78.35 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/1.931, allocations: 408.9 kB / 0.7169 GB, free: 77.9 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009473/1.94, allocations: 5.645 MB / 0.7224 GB, free: 77.42 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008638/1.941, allocations: 25.7 kB / 0.7224 GB, free: 77.39 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003558/1.944, allocations: 5.474 MB / 0.7278 GB, free: 74.82 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001765/1.946, allocations: 1.315 MB / 0.729 GB, free: 74.01 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004484/1.947, allocations: 0 / 0.729 GB, free: 74.01 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0004272/1.947, allocations: 0.6779 MB / 0.7297 GB, free: 73.68 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00508/1.952, allocations: 3.351 MB / 0.733 GB, free: 73.66 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00792/1.96, allocations: 8.293 MB / 0.7411 GB, free: 67.29 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009125/1.969, allocations: 5.182 MB / 0.7461 GB, free: 67.24 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002766/1.97, allocations: 49.09 kB / 0.7462 GB, free: 67.24 MB / 394.8 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.03106/2.001, allocations: 13.8 MB / 0.7597 GB, free: 66.43 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/2.001, allocations: 81.59 kB / 0.7597 GB, free: 66.43 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002802/2.001, allocations: 172.3 kB / 0.7599 GB, free: 66.43 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01117/2.012, allocations: 3.683 MB / 0.7635 GB, free: 66.38 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006802/2.019, allocations: 1.915 MB / 0.7654 GB, free: 66.21 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02896/2.048, allocations: 22.22 MB / 0.7871 GB, free: 55.64 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00867/2.057, allocations: 328.6 kB / 0.7874 GB, free: 55.62 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001913/2.059, allocations: 0.5065 MB / 0.7879 GB, free: 55.55 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1030): * Single equations (assignments): 1024 * 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 {(8,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001608/2.061, allocations: 0.5573 MB / 0.7884 GB, free: 55.11 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001535/2.062, allocations: 0.6546 MB / 0.7891 GB, free: 54.75 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01588/2.078, allocations: 8.499 MB / 0.7974 GB, free: 51.88 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.683e-05/2.078, allocations: 40.78 kB / 0.7974 GB, free: 51.88 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.12e-05/2.078, allocations: 19.22 kB / 0.7974 GB, free: 51.88 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.632e-05/2.078, allocations: 22.28 kB / 0.7974 GB, free: 51.87 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03187/2.11, allocations: 18.13 MB / 0.8151 GB, free: 38.36 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/2.11, allocations: 13.41 kB / 0.8152 GB, free: 38.35 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/2.112, allocations: 457.5 kB / 0.8156 GB, free: 37.97 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008907/2.121, allocations: 3.412 MB / 0.8189 GB, free: 35.49 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005262/2.122, allocations: 16 kB / 0.8189 GB, free: 35.48 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02448/2.146, allocations: 21.53 MB / 0.84 GB, free: 16.54 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/2.146, allocations: 15.94 kB / 0.84 GB, free: 16.52 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2804/2.427, allocations: 14.59 MB / 0.8542 GB, free: 69.17 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004917/2.432, allocations: 1.194 MB / 0.8554 GB, free: 69.07 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00229/2.434, allocations: 13.09 kB / 0.8554 GB, free: 69.07 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003854/2.438, allocations: 164.1 kB / 0.8556 GB, free: 69.07 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007656/2.439, allocations: 264.9 kB / 0.8558 GB, free: 69.07 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002592/2.439, allocations: 107.6 kB / 0.8559 GB, free: 69.06 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.007764/2.447, allocations: 3.939 MB / 0.8598 GB, free: 68.85 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.9e-07/2.447, allocations: 1.781 kB / 0.8598 GB, free: 68.85 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01207/2.459, allocations: 1.748 MB / 0.8615 GB, free: 68.85 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 (248): * Single equations (assignments): 242 * 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 {(8,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007673/2.459, allocations: 171.1 kB / 0.8616 GB, free: 68.76 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01605/2.475, allocations: 8.965 MB / 0.8704 GB, free: 68.3 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/2.476, allocations: 2.625 kB / 0.8704 GB, free: 68.3 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005352/2.481, allocations: 3.937 MB / 0.8742 GB, free: 67.89 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/2.486, allocations: 0.873 MB / 0.8751 GB, free: 67.86 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02895/2.515, allocations: 15.15 MB / 0.8899 GB, free: 64.83 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008867/2.524, allocations: 5.931 MB / 0.8957 GB, free: 63.92 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.008877/2.533, allocations: 2.85 MB / 0.8985 GB, free: 63.86 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001313/2.534, allocations: 401.3 kB / 0.8988 GB, free: 63.85 MB / 394.8 MB Notification: Performance of SimCode: time 9.62e-07/2.534, allocations: 1.5 kB / 0.8988 GB, free: 63.85 MB / 394.8 MB Notification: Performance of Templates: time 0.1248/2.659, allocations: 75.43 MB / 0.9725 GB, free: 13.66 MB / 394.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)