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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.00114/0.00114, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.484/1.484, allocations: 194.3 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001648/0.001648, allocations: 132.6 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.685e-05/2.687e-05, allocations: 0 / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08435, allocations: 44.5 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.4273, allocations: 90.65 MB / 440.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.4276, allocations: 89.77 kB / 440.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6023/1.03, allocations: 160 MB / 0.5861 GB, free: 66.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.03, allocations: 3.938 kB / 0.5861 GB, free: 66.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006037/1.031, allocations: 158.2 kB / 0.5863 GB, free: 66.67 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02483/1.055, allocations: 7.881 MB / 0.594 GB, free: 63.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.055, allocations: 10 kB / 0.594 GB, free: 63.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05894/1.114, allocations: 16.48 MB / 0.6101 GB, free: 63.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03015/1.145, allocations: 13.49 MB / 0.6233 GB, free: 53.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004025/1.145, allocations: 0.5219 MB / 0.6238 GB, free: 53.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002714/1.148, allocations: 0.7237 MB / 0.6245 GB, free: 52.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03133/1.179, allocations: 16.26 MB / 0.6403 GB, free: 35.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004221/1.18, allocations: 115 kB / 0.6405 GB, free: 34.99 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001683/1.181, allocations: 332.8 kB / 0.6408 GB, free: 34.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001609/1.183, allocations: 1.476 MB / 0.6422 GB, free: 33.22 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02569/1.209, allocations: 12.73 MB / 0.6546 GB, free: 20.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3323/1.541, allocations: 73.3 MB / 0.7262 GB, free: 45.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01956/1.561, allocations: 7.464 MB / 0.7335 GB, free: 44.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005069/1.566, allocations: 3.962 MB / 0.7374 GB, free: 44.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0178/1.584, allocations: 11.58 MB / 0.7487 GB, free: 42.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/1.584, allocations: 67.06 kB / 0.7488 GB, free: 42.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 5.21e-06/1.584, allocations: 0 / 0.7488 GB, free: 42.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1263/1.71, allocations: 37.92 MB / 0.7858 GB, free: 35.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/1.71, allocations: 403.8 kB / 0.7862 GB, free: 35.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01296/1.723, allocations: 6.176 MB / 0.7922 GB, free: 33.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009031/1.724, allocations: 72.23 kB / 0.7923 GB, free: 33.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003832/1.728, allocations: 5.235 MB / 0.7974 GB, free: 29.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001843/1.73, allocations: 1.24 MB / 0.7986 GB, free: 28.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006377/1.73, allocations: 168.5 kB / 0.7988 GB, free: 28.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004627/1.731, allocations: 0.6518 MB / 0.7994 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004802/1.736, allocations: 3.721 MB / 0.803 GB, free: 26.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00717/1.743, allocations: 8.366 MB / 0.8112 GB, free: 16.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008212/1.751, allocations: 5.486 MB / 0.8166 GB, free: 11.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/1.751, allocations: 44 kB / 0.8166 GB, free: 11.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.03738/1.789, allocations: 16.55 MB / 0.8328 GB, free: 14.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003162/1.789, allocations: 76 kB / 0.8328 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004712/1.79, allocations: 160 kB / 0.833 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01685/1.806, allocations: 5.507 MB / 0.8384 GB, free: 10.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006666/1.813, allocations: 1.78 MB / 0.8401 GB, free: 8.863 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2804/2.094, allocations: 28.03 MB / 0.8675 GB, free: 94.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007398/2.101, allocations: 0.5179 MB / 0.868 GB, free: 94.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001441/2.102, allocations: 484.8 kB / 0.8684 GB, free: 94.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (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],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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * 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,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001357/2.104, allocations: 0.7337 MB / 0.8692 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001399/2.105, allocations: 0.656 MB / 0.8698 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0211/2.126, allocations: 10.89 MB / 0.8804 GB, free: 93.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.48e-05/2.126, allocations: 34.59 kB / 0.8805 GB, free: 93.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.542e-05/2.126, allocations: 22.97 kB / 0.8805 GB, free: 93.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.232e-05/2.127, allocations: 14.25 kB / 0.8805 GB, free: 93.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04161/2.168, allocations: 23.93 MB / 0.9039 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.434e-05/2.168, allocations: 6.906 kB / 0.9039 GB, free: 84.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/2.17, allocations: 429.2 kB / 0.9043 GB, free: 84.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01438/2.185, allocations: 5.084 MB / 0.9093 GB, free: 83.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006937/2.185, allocations: 59.5 kB / 0.9093 GB, free: 83.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0312/2.217, allocations: 26.73 MB / 0.9354 GB, free: 71.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/2.217, allocations: 11.62 kB / 0.9354 GB, free: 71.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02633/2.243, allocations: 16.75 MB / 0.9518 GB, free: 59.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004819/2.248, allocations: 1.269 MB / 0.953 GB, free: 58.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001929/2.25, allocations: 63.94 kB / 0.9531 GB, free: 58.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004002/2.254, allocations: 251.2 kB / 0.9533 GB, free: 58.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008443/2.255, allocations: 241.2 kB / 0.9535 GB, free: 57.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002578/2.255, allocations: 98.73 kB / 0.9536 GB, free: 57.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007155/2.262, allocations: 4.451 MB / 0.958 GB, free: 53.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.262, allocations: 0 / 0.958 GB, free: 53.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01021/2.272, allocations: 1.961 MB / 0.9599 GB, free: 51.94 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008267/2.273, allocations: 215 kB / 0.9601 GB, free: 51.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01491/2.288, allocations: 9.985 MB / 0.9699 GB, free: 43.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.288, allocations: 0 / 0.9699 GB, free: 43.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006404/2.295, allocations: 4.423 MB / 0.9742 GB, free: 39.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005212/2.3, allocations: 0.9776 MB / 0.9751 GB, free: 38.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02691/2.327, allocations: 15.73 MB / 0.9905 GB, free: 23.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007717/2.335, allocations: 5.714 MB / 0.9961 GB, free: 17.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007369/2.342, allocations: 2.629 MB / 0.9986 GB, free: 15.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/2.343, allocations: 394.7 kB / 0.999 GB, free: 14.86 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/2.343, allocations: 0 / 0.999 GB, free: 14.86 MB / 442.7 MB Notification: Performance of Templates: time 0.4038/2.747, allocations: 83.87 MB / 1.081 GB, free: 74 MB / 442.7 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)