Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.0009961/0.0009961, allocations: 175.7 kB / 8.134 MB, free: 2.191 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.055/1.055, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.000909/0.000909, allocations: 100 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08895/0.08989, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.2588, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09469/0.3535, allocations: 100.6 MB / 487.6 MB, free: 2.113 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.3538, allocations: 92.64 kB / 487.7 MB, free: 2.023 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.392/0.7458, allocations: 130.6 MB / 0.6039 GB, free: 3.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.976e-05/0.7459, allocations: 15.92 kB / 0.6039 GB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02786/0.7737, allocations: 7.627 MB / 0.6113 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01664/0.7904, allocations: 7.014 MB / 0.6182 GB, free: 4.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/0.7907, allocations: 192 kB / 0.6183 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002/0.7927, allocations: 355.8 kB / 0.6187 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01569/0.8084, allocations: 10.39 MB / 0.6288 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02095/0.8294, allocations: 14.33 MB / 0.6428 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001962/0.8296, allocations: 75.39 kB / 0.6429 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009969/0.8306, allocations: 35.91 kB / 0.6429 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001977/0.8326, allocations: 1.732 MB / 0.6446 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1535/0.9861, allocations: 62.39 MB / 0.7055 GB, free: 75.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004102/0.9902, allocations: 4.615 MB / 0.7101 GB, free: 75.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003063/0.9933, allocations: 3.565 MB / 0.7135 GB, free: 75.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01647/1.01, allocations: 15.37 MB / 0.7285 GB, free: 70.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/1.01, allocations: 69.12 kB / 0.7286 GB, free: 70.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 4.709e-06/1.01, allocations: 0 / 0.7286 GB, free: 70.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.05834/1.068, allocations: 28.98 MB / 0.7569 GB, free: 60.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/1.068, allocations: 218 kB / 0.7571 GB, free: 60.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/1.073, allocations: 4.337 MB / 0.7614 GB, free: 59.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/1.073, allocations: 25.7 kB / 0.7614 GB, free: 59.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/1.075, allocations: 4.183 MB / 0.7655 GB, free: 56.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008718/1.076, allocations: 1.228 MB / 0.7667 GB, free: 55.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004559/1.076, allocations: 0 / 0.7667 GB, free: 55.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000352/1.077, allocations: 0.7045 MB / 0.7674 GB, free: 54.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004766/1.081, allocations: 4.523 MB / 0.7718 GB, free: 52.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005898/1.087, allocations: 9.725 MB / 0.7813 GB, free: 40.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006453/1.094, allocations: 6.58 MB / 0.7877 GB, free: 35.37 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-05/1.094, allocations: 52 kB / 0.7877 GB, free: 35.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=1205) (initialization): time 0.03314/1.127, allocations: 17.66 MB / 0.805 GB, free: 21.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/1.127, allocations: 4 kB / 0.805 GB, free: 21.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/1.127, allocations: 184 kB / 0.8052 GB, free: 21.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01976/1.147, allocations: 5.333 MB / 0.8104 GB, free: 17.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006321/1.153, allocations: 2.086 MB / 0.8124 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1303/1.284, allocations: 20.96 MB / 0.8329 GB, free: 96.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006016/1.29, allocations: 310.7 kB / 0.8332 GB, free: 96.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006637/1.29, allocations: 0.5283 MB / 0.8337 GB, free: 96.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (1114): * Single equations (assignments): 1106 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009655/1.291, allocations: 0.5718 MB / 0.8343 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005992/1.292, allocations: 483 kB / 0.8347 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02552/1.318, allocations: 11.99 MB / 0.8464 GB, free: 96.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.037e-05/1.318, allocations: 52.95 kB / 0.8465 GB, free: 96.28 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.318, allocations: 12.72 kB / 0.8465 GB, free: 96.28 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/1.318, allocations: 13.36 kB / 0.8465 GB, free: 96.28 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03767/1.355, allocations: 22.41 MB / 0.8684 GB, free: 93.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/1.355, allocations: 3.812 kB / 0.8684 GB, free: 93.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002584/1.358, allocations: 0.5099 MB / 0.8689 GB, free: 93.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01716/1.375, allocations: 4.329 MB / 0.8731 GB, free: 93.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003105/1.375, allocations: 9.969 kB / 0.8731 GB, free: 93.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/1.393, allocations: 16.83 MB / 0.8896 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/1.393, allocations: 10.19 kB / 0.8896 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02983/1.423, allocations: 17.16 MB / 0.9063 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04183/1.465, allocations: 33.24 MB / 0.9388 GB, free: 60.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/1.466, allocations: 0.4969 MB / 0.9393 GB, free: 60.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.467, allocations: 8 kB / 0.9393 GB, free: 60.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002717/1.47, allocations: 129 kB / 0.9394 GB, free: 59.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004484/1.47, allocations: 155.1 kB / 0.9396 GB, free: 59.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002981/1.471, allocations: 84 kB / 0.9396 GB, free: 59.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003876/1.475, allocations: 2.902 MB / 0.9425 GB, free: 57.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006582/1.481, allocations: 1.478 MB / 0.9439 GB, free: 55.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005318/1.482, allocations: 181 kB / 0.9441 GB, free: 55.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01061/1.492, allocations: 10.24 MB / 0.9541 GB, free: 46.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.492, allocations: 0 / 0.9541 GB, free: 46.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003898/1.496, allocations: 3.871 MB / 0.9579 GB, free: 43.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/1.498, allocations: 454.8 kB / 0.9583 GB, free: 42.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/1.517, allocations: 13.66 MB / 0.9716 GB, free: 30.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1144/1.632, allocations: 5.145 MB / 0.9767 GB, free: 97.82 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/1.632, allocations: 2.906 kB / 0.9767 GB, free: 97.82 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)