Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002031/0.002031, allocations: 189.2 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.092/1.092, allocations: 194.2 MB / 202.8 MB, free: 8.668 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.001779/0.001779, allocations: 120.1 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.921e-06, allocations: 0 / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07181/0.07183, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.2916, allocations: 103.1 MB / 445.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.292, allocations: 84.98 kB / 445.2 MB, free: 8.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.5813/0.8733, allocations: 175.8 MB / 0.6065 GB, free: 42.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000792/0.8742, allocations: 188.6 kB / 0.6066 GB, free: 42.14 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02755/0.9017, allocations: 8.976 MB / 0.6154 GB, free: 34.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.9018, allocations: 8.031 kB / 0.6154 GB, free: 34.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06286/0.9646, allocations: 16.21 MB / 0.6312 GB, free: 18.72 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03263/0.9973, allocations: 14.75 MB / 0.6456 GB, free: 4.016 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/0.9977, allocations: 272 kB / 0.6459 GB, free: 3.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/1.001, allocations: 0.5192 MB / 0.6464 GB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02225/1.023, allocations: 12.22 MB / 0.6583 GB, free: 7.012 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.161/1.184, allocations: 17.02 MB / 0.675 GB, free: 88.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000398/1.185, allocations: 104.8 kB / 0.6751 GB, free: 88.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001363/1.186, allocations: 42.78 kB / 0.6751 GB, free: 88.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002139/1.188, allocations: 1.742 MB / 0.6768 GB, free: 88.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09153/1.28, allocations: 81.09 MB / 0.756 GB, free: 45.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007045/1.287, allocations: 5.588 MB / 0.7615 GB, free: 42.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005133/1.292, allocations: 4.646 MB / 0.766 GB, free: 40.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0234/1.315, allocations: 16.27 MB / 0.7819 GB, free: 30.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/1.315, allocations: 71.34 kB / 0.7819 GB, free: 30.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.274e-06/1.315, allocations: 2.688 kB / 0.7819 GB, free: 30.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=409): time 0.1062/1.422, allocations: 35.25 MB / 0.8164 GB, free: 17.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/1.422, allocations: 412.5 kB / 0.8168 GB, free: 17.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/1.434, allocations: 6.004 MB / 0.8226 GB, free: 13.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001132/1.435, allocations: 32.98 kB / 0.8227 GB, free: 13.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003201/1.438, allocations: 4.922 MB / 0.8275 GB, free: 8.875 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.44, allocations: 1.433 MB / 0.8289 GB, free: 7.578 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006746/1.441, allocations: 0 / 0.8289 GB, free: 7.578 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004892/1.441, allocations: 0.7058 MB / 0.8295 GB, free: 6.977 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/1.447, allocations: 4.089 MB / 0.8335 GB, free: 3.254 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1472/1.594, allocations: 9.382 MB / 0.8427 GB, free: 85.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008848/1.603, allocations: 6.11 MB / 0.8487 GB, free: 85.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/1.603, allocations: 55.5 kB / 0.8487 GB, free: 85.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03456/1.637, allocations: 15.99 MB / 0.8643 GB, free: 85.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.637, allocations: 3.781 kB / 0.8643 GB, free: 85.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002236/1.638, allocations: 182.4 kB / 0.8645 GB, free: 85.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01596/1.654, allocations: 4.456 MB / 0.8689 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007502/1.661, allocations: 1.982 MB / 0.8708 GB, free: 85.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03277/1.694, allocations: 22.21 MB / 0.8925 GB, free: 83.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008532/1.703, allocations: 307.8 kB / 0.8928 GB, free: 83.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001391/1.704, allocations: 0.5289 MB / 0.8933 GB, free: 83.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1086): * Single equations (assignments): 1081 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001507/1.706, allocations: 0.5739 MB / 0.8939 GB, free: 82.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/1.707, allocations: 0.6821 MB / 0.8945 GB, free: 82.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02301/1.73, allocations: 10.49 MB / 0.9048 GB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.462e-05/1.73, allocations: 37.44 kB / 0.9048 GB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.043e-05/1.73, allocations: 26.06 kB / 0.9048 GB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.295e-05/1.73, allocations: 24.28 kB / 0.9049 GB, free: 79.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04641/1.776, allocations: 21.92 MB / 0.9263 GB, free: 71.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.894e-05/1.777, allocations: 10.59 kB / 0.9263 GB, free: 71.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.78, allocations: 0.4978 MB / 0.9268 GB, free: 71.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01587/1.795, allocations: 3.978 MB / 0.9306 GB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006616/1.796, allocations: 14.48 kB / 0.9307 GB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02751/1.824, allocations: 19.41 MB / 0.9496 GB, free: 55.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.589e-05/1.824, allocations: 11.94 kB / 0.9496 GB, free: 55.95 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02764/1.851, allocations: 17.41 MB / 0.9666 GB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003634/1.855, allocations: 1.33 MB / 0.9679 GB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001607/1.857, allocations: 15.84 kB / 0.9679 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003731/1.86, allocations: 125.7 kB / 0.9681 GB, free: 39.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005501/1.861, allocations: 205.2 kB / 0.9683 GB, free: 38.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000354/1.861, allocations: 115.8 kB / 0.9684 GB, free: 38.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.1373/1.999, allocations: 4.417 MB / 0.9727 GB, free: 83.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009326/2.008, allocations: 1.873 MB / 0.9745 GB, free: 83.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (285): * Single equations (assignments): 281 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007097/2.009, allocations: 208.7 kB / 0.9747 GB, free: 83.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01248/2.021, allocations: 10.02 MB / 0.9845 GB, free: 83.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/2.021, allocations: 0 / 0.9845 GB, free: 83.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00523/2.026, allocations: 4.106 MB / 0.9885 GB, free: 83.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004599/2.031, allocations: 0.897 MB / 0.9894 GB, free: 83.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0412/2.072, allocations: 18.07 MB / 1.007 GB, free: 79.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009782/2.082, allocations: 6.975 MB / 1.014 GB, free: 78.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/2.082, allocations: 0 / 1.014 GB, free: 78.91 MB / 410.7 MB Notification: Performance of Templates: time 0.1588/2.241, allocations: 92.45 MB / 1.104 GB, free: 33.07 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1)