Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.0009086/0.0009086, allocations: 188 kB / 8.14 MB, free: 2.211 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.053/1.053, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009929/0.0009929, allocations: 103.4 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08473/0.08575, allocations: 55.83 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.2563, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09379/0.3501, allocations: 98.93 MB / 485.9 MB, free: 3.887 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.3504, allocations: 83.95 kB / 486 MB, free: 3.805 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.4925/0.8429, allocations: 170.5 MB / 0.6411 GB, free: 13.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.8429, allocations: 12 kB / 0.6411 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2532/1.096, allocations: 16.11 MB / 0.6569 GB, free: 85.45 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02515/1.121, allocations: 12.95 MB / 0.6695 GB, free: 84.88 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/1.122, allocations: 246.1 kB / 0.6697 GB, free: 84.88 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00122/1.123, allocations: 463.7 kB / 0.6702 GB, free: 84.86 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01355/1.136, allocations: 10.36 MB / 0.6803 GB, free: 84.82 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/1.154, allocations: 15.26 MB / 0.6952 GB, free: 81.24 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002367/1.154, allocations: 116.7 kB / 0.6953 GB, free: 81.22 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00068/1.155, allocations: 42.47 kB / 0.6954 GB, free: 81.22 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001731/1.156, allocations: 1.673 MB / 0.697 GB, free: 81.21 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06599/1.222, allocations: 75.96 MB / 0.7712 GB, free: 35.09 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005506/1.228, allocations: 5.818 MB / 0.7768 GB, free: 32.29 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004043/1.232, allocations: 4.732 MB / 0.7815 GB, free: 30.2 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01715/1.249, allocations: 14.06 MB / 0.7952 GB, free: 20.47 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/1.249, allocations: 67.94 kB / 0.7953 GB, free: 20.39 MB / 426.8 MB Notification: Performance of pre-optimization done (n=294): time 6.111e-06/1.249, allocations: 0 / 0.7953 GB, free: 20.39 MB / 426.8 MB Notification: Performance of matching and sorting (n=361): time 0.1997/1.449, allocations: 36.87 MB / 0.8313 GB, free: 78.89 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/1.449, allocations: 401.9 kB / 0.8316 GB, free: 78.45 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006656/1.456, allocations: 5.621 MB / 0.8371 GB, free: 77.96 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005224/1.456, allocations: 25.7 kB / 0.8372 GB, free: 77.93 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/1.458, allocations: 4.521 MB / 0.8416 GB, free: 75.78 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000997/1.459, allocations: 1.281 MB / 0.8428 GB, free: 75 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003675/1.459, allocations: 3.281 kB / 0.8428 GB, free: 75 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003032/1.46, allocations: 0.6763 MB / 0.8435 GB, free: 74.67 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003939/1.464, allocations: 3.879 MB / 0.8473 GB, free: 74.65 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005404/1.469, allocations: 8.747 MB / 0.8558 GB, free: 68.38 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005701/1.475, allocations: 5.746 MB / 0.8614 GB, free: 68.32 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.097e-05/1.475, allocations: 55.69 kB / 0.8615 GB, free: 68.32 MB / 426.8 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.02871/1.504, allocations: 15.98 MB / 0.8771 GB, free: 67.77 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.504, allocations: 9.031 kB / 0.8771 GB, free: 67.77 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001285/1.504, allocations: 169.5 kB / 0.8773 GB, free: 67.77 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01561/1.519, allocations: 5.268 MB / 0.8824 GB, free: 67.73 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00574/1.525, allocations: 1.862 MB / 0.8842 GB, free: 67.71 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03133/1.557, allocations: 25.82 MB / 0.9094 GB, free: 59.87 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007025/1.564, allocations: 308.3 kB / 0.9097 GB, free: 59.85 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/1.565, allocations: 0.497 MB / 0.9102 GB, free: 59.78 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: 780 * Number of states: 0 () * Number of discrete variables: 72 (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],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 (1006): * Single equations (assignments): 1000 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001191/1.566, allocations: 0.5447 MB / 0.9108 GB, free: 59.34 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000794/1.567, allocations: 0.6399 MB / 0.9114 GB, free: 58.99 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02067/1.587, allocations: 10.92 MB / 0.922 GB, free: 55.53 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.678e-05/1.587, allocations: 31.91 kB / 0.9221 GB, free: 55.53 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.172e-05/1.587, allocations: 20.84 kB / 0.9221 GB, free: 55.53 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.249e-05/1.588, allocations: 15.56 kB / 0.9221 GB, free: 55.53 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03668/1.624, allocations: 23.31 MB / 0.9449 GB, free: 38.64 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.212e-05/1.624, allocations: 4 kB / 0.9449 GB, free: 38.63 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/1.626, allocations: 436.6 kB / 0.9453 GB, free: 38.27 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01531/1.642, allocations: 4.94 MB / 0.9501 GB, free: 34.83 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004376/1.642, allocations: 9.547 kB / 0.9501 GB, free: 34.82 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1515/1.794, allocations: 25.67 MB / 0.9752 GB, free: 71.14 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/1.794, allocations: 10.16 kB / 0.9752 GB, free: 71.14 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02582/1.82, allocations: 17.2 MB / 0.992 GB, free: 69.16 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02977/1.849, allocations: 22.53 MB / 1.014 GB, free: 66.79 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002829/1.852, allocations: 1.261 MB / 1.015 GB, free: 66.7 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009768/1.853, allocations: 13.41 kB / 1.015 GB, free: 66.7 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/1.856, allocations: 142.6 kB / 1.015 GB, free: 66.7 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004746/1.857, allocations: 174.4 kB / 1.016 GB, free: 66.69 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002995/1.857, allocations: 98.44 kB / 1.016 GB, free: 66.69 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.004843/1.862, allocations: 3.935 MB / 1.019 GB, free: 66.48 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006895/1.869, allocations: 1.751 MB / 1.021 GB, free: 66.48 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005461/1.869, allocations: 178.6 kB / 1.021 GB, free: 66.39 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01262/1.882, allocations: 9.883 MB / 1.031 GB, free: 64 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.882, allocations: 2.156 kB / 1.031 GB, free: 64 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006838/1.889, allocations: 4.325 MB / 1.035 GB, free: 62.21 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004223/1.893, allocations: 0.8419 MB / 1.036 GB, free: 61.91 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02823/1.921, allocations: 16.5 MB / 1.052 GB, free: 56.35 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006655/1.928, allocations: 6.273 MB / 1.058 GB, free: 53.9 MB / 426.8 MB Notification: Performance of SimCode: time 6.31e-07/1.928, allocations: 0 / 1.058 GB, free: 53.9 MB / 426.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1)