Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001157/0.001157, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008906/0.0008906, allocations: 94.38 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09509/0.096, allocations: 56.91 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0805/0.1765, allocations: 51.47 MB / 394.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2263/0.4028, allocations: 97.97 MB / 492.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4031, allocations: 83.08 kB / 492.8 MB, free: 11.17 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.5523/0.9554, allocations: 173.9 MB / 0.651 GB, free: 66.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.9554, allocations: 9.156 kB / 0.6511 GB, free: 66.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05921/1.015, allocations: 16.05 MB / 0.6667 GB, free: 63.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02587/1.041, allocations: 11.52 MB / 0.678 GB, free: 56.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003159/1.041, allocations: 233.2 kB / 0.6782 GB, free: 56.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002528/1.043, allocations: 441.5 kB / 0.6786 GB, free: 56.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01639/1.06, allocations: 9.947 MB / 0.6883 GB, free: 50.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02333/1.083, allocations: 14.74 MB / 0.7027 GB, free: 34.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003717/1.084, allocations: 115 kB / 0.7028 GB, free: 34.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001234/1.085, allocations: 43.91 kB / 0.7029 GB, free: 34.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001812/1.087, allocations: 1.62 MB / 0.7045 GB, free: 32.97 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3098/1.396, allocations: 74.12 MB / 0.7768 GB, free: 62.78 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005878/1.402, allocations: 5.667 MB / 0.7824 GB, free: 62.12 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004514/1.407, allocations: 4.605 MB / 0.7869 GB, free: 62.09 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01907/1.426, allocations: 13.67 MB / 0.8002 GB, free: 58.45 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/1.426, allocations: 72.66 kB / 0.8003 GB, free: 58.4 MB / 442.8 MB Notification: Performance of pre-optimization done (n=280): time 5.57e-06/1.426, allocations: 0 / 0.8003 GB, free: 58.4 MB / 442.8 MB Notification: Performance of matching and sorting (n=340): time 0.08592/1.512, allocations: 35.15 MB / 0.8346 GB, free: 46.41 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/1.512, allocations: 400.3 kB / 0.835 GB, free: 45.97 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007649/1.52, allocations: 5.477 MB / 0.8403 GB, free: 44.09 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005365/1.52, allocations: 25.7 kB / 0.8404 GB, free: 44.06 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002057/1.522, allocations: 4.381 MB / 0.8446 GB, free: 40.83 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001111/1.524, allocations: 1.21 MB / 0.8458 GB, free: 39.92 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003923/1.524, allocations: 0 / 0.8458 GB, free: 39.92 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0003415/1.524, allocations: 0.6612 MB / 0.8465 GB, free: 39.46 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004936/1.529, allocations: 3.721 MB / 0.8501 GB, free: 38.07 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006804/1.536, allocations: 8.485 MB / 0.8584 GB, free: 30.27 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006736/1.543, allocations: 5.546 MB / 0.8638 GB, free: 28.28 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.521e-05/1.543, allocations: 47.94 kB / 0.8639 GB, free: 28.28 MB / 442.8 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.03014/1.573, allocations: 15.33 MB / 0.8788 GB, free: 23.54 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/1.573, allocations: 17.2 kB / 0.8788 GB, free: 23.54 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/1.573, allocations: 170.2 kB / 0.879 GB, free: 23.54 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01624/1.59, allocations: 4.999 MB / 0.8839 GB, free: 22.36 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006308/1.596, allocations: 1.817 MB / 0.8857 GB, free: 20.76 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03649/1.632, allocations: 25.23 MB / 0.9103 GB, free: 0 / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1475/1.78, allocations: 298.9 kB / 0.9106 GB, free: 91.85 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/1.781, allocations: 496.6 kB / 0.9111 GB, free: 91.85 MB / 442.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (972): * Single equations (assignments): 966 * 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.001311/1.782, allocations: 0.5308 MB / 0.9116 GB, free: 91.73 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000934/1.783, allocations: 0.6184 MB / 0.9122 GB, free: 91.73 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02114/1.804, allocations: 10.33 MB / 0.9223 GB, free: 91.52 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.807e-05/1.805, allocations: 30.41 kB / 0.9223 GB, free: 91.52 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.882e-05/1.805, allocations: 21.88 kB / 0.9223 GB, free: 91.52 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.313e-05/1.805, allocations: 13.59 kB / 0.9223 GB, free: 91.52 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03896/1.844, allocations: 22.25 MB / 0.9441 GB, free: 88.91 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.456e-05/1.844, allocations: 7.281 kB / 0.9441 GB, free: 88.91 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/1.846, allocations: 411.1 kB / 0.9445 GB, free: 88.91 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01542/1.861, allocations: 4.658 MB / 0.949 GB, free: 88.87 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006541/1.862, allocations: 15.14 kB / 0.949 GB, free: 88.87 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03039/1.892, allocations: 23.62 MB / 0.9721 GB, free: 78.65 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/1.892, allocations: 13.97 kB / 0.9721 GB, free: 78.65 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0266/1.919, allocations: 16.35 MB / 0.9881 GB, free: 72.08 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03292/1.952, allocations: 21.38 MB / 1.009 GB, free: 62.87 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.954, allocations: 0.6237 MB / 1.01 GB, free: 62.41 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/1.955, allocations: 6.688 kB / 1.01 GB, free: 62.41 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003028/1.958, allocations: 135.7 kB / 1.01 GB, free: 62.41 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004828/1.958, allocations: 167.1 kB / 1.01 GB, free: 62.38 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003433/1.959, allocations: 89.38 kB / 1.01 GB, free: 62.36 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.005634/1.964, allocations: 3.84 MB / 1.014 GB, free: 61.03 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009112/1.974, allocations: 1.68 MB / 1.015 GB, free: 61.03 MB / 442.8 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 (215): * Single equations (assignments): 209 * 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.0007585/1.974, allocations: 179.9 kB / 1.015 GB, free: 60.93 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.01382/1.988, allocations: 9.49 MB / 1.025 GB, free: 56.11 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/1.988, allocations: 3.469 kB / 1.025 GB, free: 56.11 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006627/1.995, allocations: 4.084 MB / 1.029 GB, free: 52.46 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004449/1.999, allocations: 0.8261 MB / 1.03 GB, free: 51.8 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03003/2.029, allocations: 15.82 MB / 1.045 GB, free: 37.7 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008076/2.037, allocations: 6.053 MB / 1.051 GB, free: 33.2 MB / 442.8 MB Notification: Performance of SimCode: time 8.71e-07/2.038, allocations: 0 / 1.051 GB, free: 33.2 MB / 442.8 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)