Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009366/0.0009366, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.059/1.059, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 95.94 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0833/0.08423, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.2481, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08837/0.3365, allocations: 97.32 MB / 484.3 MB, free: 5.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001963/0.3367, allocations: 89.33 kB / 484.4 MB, free: 5.336 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.474/0.8107, allocations: 165.6 MB / 0.6347 GB, free: 4.027 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.8107, allocations: 12 kB / 0.6348 GB, free: 4.016 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05662/0.8674, allocations: 16.05 MB / 0.6504 GB, free: 3.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2139/1.081, allocations: 12.68 MB / 0.6628 GB, free: 87.63 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002241/1.082, allocations: 228 kB / 0.663 GB, free: 87.63 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/1.083, allocations: 448.7 kB / 0.6635 GB, free: 87.61 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01164/1.095, allocations: 9.945 MB / 0.6732 GB, free: 87.58 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/1.109, allocations: 14.74 MB / 0.6876 GB, free: 84.01 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002191/1.109, allocations: 111.8 kB / 0.6877 GB, free: 84 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00066/1.11, allocations: 42.56 kB / 0.6877 GB, free: 84 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001617/1.111, allocations: 1.627 MB / 0.6893 GB, free: 83.98 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06372/1.175, allocations: 74.12 MB / 0.7617 GB, free: 40.07 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006045/1.181, allocations: 5.66 MB / 0.7672 GB, free: 37.33 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004155/1.185, allocations: 4.614 MB / 0.7717 GB, free: 35.31 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/1.203, allocations: 13.67 MB / 0.7851 GB, free: 27.77 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/1.203, allocations: 66.19 kB / 0.7851 GB, free: 27.71 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 4.759e-06/1.203, allocations: 0 / 0.7851 GB, free: 27.71 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.07985/1.282, allocations: 35.15 MB / 0.8195 GB, free: 1.109 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/1.283, allocations: 390.1 kB / 0.8198 GB, free: 0.6406 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1179/1.4, allocations: 5.472 MB / 0.8252 GB, free: 84.68 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000545/1.401, allocations: 25.7 kB / 0.8252 GB, free: 84.65 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/1.403, allocations: 4.379 MB / 0.8295 GB, free: 83.76 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009695/1.404, allocations: 1.212 MB / 0.8307 GB, free: 83.02 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/1.404, allocations: 0 / 0.8307 GB, free: 83.02 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003009/1.404, allocations: 0.664 MB / 0.8313 GB, free: 82.7 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003699/1.408, allocations: 3.719 MB / 0.8349 GB, free: 82.67 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005032/1.413, allocations: 8.49 MB / 0.8432 GB, free: 76.52 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005415/1.419, allocations: 5.54 MB / 0.8486 GB, free: 76.47 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.137e-05/1.419, allocations: 50.12 kB / 0.8487 GB, free: 76.47 MB / 426.8 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.02576/1.444, allocations: 15.33 MB / 0.8637 GB, free: 75.94 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/1.444, allocations: 11.81 kB / 0.8637 GB, free: 75.94 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/1.445, allocations: 176.9 kB / 0.8638 GB, free: 75.93 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/1.459, allocations: 4.999 MB / 0.8687 GB, free: 75.89 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005216/1.464, allocations: 1.816 MB / 0.8705 GB, free: 75.88 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02801/1.492, allocations: 24.79 MB / 0.8947 GB, free: 70.35 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007662/1.5, allocations: 299.5 kB / 0.895 GB, free: 70.33 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007667/1.501, allocations: 493.2 kB / 0.8955 GB, free: 70.27 MB / 426.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.001021/1.502, allocations: 0.5463 MB / 0.896 GB, free: 69.82 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008318/1.503, allocations: 0.6124 MB / 0.8966 GB, free: 69.49 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02013/1.523, allocations: 10.33 MB / 0.9067 GB, free: 66.21 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.915e-05/1.523, allocations: 29.84 kB / 0.9067 GB, free: 66.21 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.523, allocations: 17.44 kB / 0.9067 GB, free: 66.21 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.25e-05/1.523, allocations: 20.48 kB / 0.9068 GB, free: 66.21 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03292/1.556, allocations: 22.25 MB / 0.9285 GB, free: 55.52 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/1.556, allocations: 11.66 kB / 0.9285 GB, free: 55.51 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/1.558, allocations: 410 kB / 0.9289 GB, free: 55.17 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01397/1.572, allocations: 4.659 MB / 0.9334 GB, free: 51.93 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002711/1.572, allocations: 8 kB / 0.9334 GB, free: 51.92 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0275/1.6, allocations: 23.62 MB / 0.9565 GB, free: 31.14 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.6, allocations: 18.19 kB / 0.9565 GB, free: 31.12 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1404/1.74, allocations: 16.54 MB / 0.9727 GB, free: 74.09 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02726/1.767, allocations: 21.39 MB / 0.9936 GB, free: 71.72 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/1.769, allocations: 0.6126 MB / 0.9942 GB, free: 71.63 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008943/1.77, allocations: 9.438 kB / 0.9942 GB, free: 71.63 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002636/1.772, allocations: 137.2 kB / 0.9943 GB, free: 71.63 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004058/1.773, allocations: 166.7 kB / 0.9945 GB, free: 71.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/1.773, allocations: 84.06 kB / 0.9945 GB, free: 71.62 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.004552/1.777, allocations: 3.841 MB / 0.9983 GB, free: 71.41 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006566/1.784, allocations: 1.68 MB / 0.9999 GB, free: 71.41 MB / 426.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.0004824/1.785, allocations: 175.2 kB / 1 GB, free: 71.32 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01118/1.796, allocations: 9.496 MB / 1.009 GB, free: 70.93 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.796, allocations: 0 / 1.009 GB, free: 70.93 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00555/1.801, allocations: 4.072 MB / 1.013 GB, free: 70.57 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/1.805, allocations: 0.8202 MB / 1.014 GB, free: 70.54 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.026/1.831, allocations: 15.82 MB / 1.03 GB, free: 67.22 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006843/1.838, allocations: 6.055 MB / 1.036 GB, free: 65.43 MB / 426.8 MB Notification: Performance of SimCode: time 6.21e-07/1.838, allocations: 0 / 1.036 GB, free: 65.43 MB / 426.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1)