Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.000914/0.000914, allocations: 181.9 kB / 8.13 MB, free: 2.188 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.034/1.034, allocations: 221.4 MB / 229.9 MB, free: 3.039 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.0009399/0.0009396, allocations: 95.38 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08572/0.08669, allocations: 55.83 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.2511, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09521/0.3463, allocations: 103.1 MB / 490.1 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.3465, allocations: 91.89 kB / 490.2 MB, free: 15.5 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.4072/0.7537, allocations: 144.2 MB / 0.6195 GB, free: 3.941 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.7538, allocations: 8 kB / 0.6195 GB, free: 3.934 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04041/0.7942, allocations: 11.31 MB / 0.6306 GB, free: 8.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0225/0.8167, allocations: 9.974 MB / 0.6403 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/0.817, allocations: 228 kB / 0.6406 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001948/0.819, allocations: 435.7 kB / 0.641 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01526/0.8343, allocations: 10.24 MB / 0.651 GB, free: 3.633 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1252/0.9595, allocations: 14.98 MB / 0.6656 GB, free: 90.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002319/0.9598, allocations: 101.4 kB / 0.6657 GB, free: 90.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006884/0.9605, allocations: 37.78 kB / 0.6657 GB, free: 90.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001621/0.9621, allocations: 1.571 MB / 0.6673 GB, free: 90.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06154/1.024, allocations: 73.7 MB / 0.7392 GB, free: 52.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005332/1.029, allocations: 6.081 MB / 0.7452 GB, free: 49.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004009/1.033, allocations: 5.044 MB / 0.7501 GB, free: 47.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01671/1.05, allocations: 14.59 MB / 0.7644 GB, free: 40.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/1.05, allocations: 74.64 kB / 0.7644 GB, free: 40.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=275): time 5.039e-06/1.05, allocations: 1.062 kB / 0.7644 GB, free: 40.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=368): time 0.09894/1.149, allocations: 44.02 MB / 0.8074 GB, free: 18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/1.149, allocations: 376.5 kB / 0.8078 GB, free: 17.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005884/1.155, allocations: 4.907 MB / 0.8126 GB, free: 13.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007024/1.156, allocations: 33.7 kB / 0.8126 GB, free: 13.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001608/1.157, allocations: 4.348 MB / 0.8168 GB, free: 9.301 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/1.158, allocations: 1.306 MB / 0.8181 GB, free: 8.125 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004804/1.159, allocations: 0 / 0.8181 GB, free: 8.125 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003268/1.159, allocations: 0.6882 MB / 0.8188 GB, free: 7.535 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005315/1.164, allocations: 5.416 MB / 0.8241 GB, free: 2.625 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1267/1.291, allocations: 11.38 MB / 0.8352 GB, free: 85.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007711/1.299, allocations: 7.429 MB / 0.8425 GB, free: 85.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.618e-05/1.299, allocations: 53.06 kB / 0.8425 GB, free: 85.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03412/1.333, allocations: 19.84 MB / 0.8619 GB, free: 85.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.333, allocations: 8.281 kB / 0.8619 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/1.333, allocations: 178.4 kB / 0.8621 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01808/1.351, allocations: 5.959 MB / 0.8679 GB, free: 85.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006934/1.358, allocations: 2.015 MB / 0.8698 GB, free: 85.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03467/1.393, allocations: 28.9 MB / 0.8981 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007615/1.401, allocations: 401.6 kB / 0.8984 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/1.402, allocations: 0.5237 MB / 0.899 GB, free: 79.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1040 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001566/1.404, allocations: 0.5456 MB / 0.8995 GB, free: 79.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.405, allocations: 0.5516 MB / 0.9 GB, free: 79.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02672/1.432, allocations: 14.73 MB / 0.9144 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/1.432, allocations: 43.14 kB / 0.9145 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/1.432, allocations: 18 kB / 0.9145 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.97e-05/1.432, allocations: 21.2 kB / 0.9145 GB, free: 74.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04528/1.477, allocations: 28.48 MB / 0.9423 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.588e-05/1.477, allocations: 0 / 0.9423 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/1.481, allocations: 0.5029 MB / 0.9428 GB, free: 56.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01761/1.498, allocations: 5.619 MB / 0.9483 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006777/1.499, allocations: 6.859 kB / 0.9483 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1462/1.645, allocations: 28.01 MB / 0.9756 GB, free: 82.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/1.645, allocations: 0 / 0.9756 GB, free: 82.54 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03157/1.677, allocations: 22.29 MB / 0.9974 GB, free: 81.76 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03811/1.715, allocations: 30.18 MB / 1.027 GB, free: 79.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/1.716, allocations: 0.5529 MB / 1.027 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.717, allocations: 12.17 kB / 1.027 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/1.72, allocations: 208.3 kB / 1.028 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006086/1.721, allocations: 168.2 kB / 1.028 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003959/1.721, allocations: 93.34 kB / 1.028 GB, free: 79.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003894/1.725, allocations: 3.376 MB / 1.031 GB, free: 78.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007226/1.732, allocations: 1.88 MB / 1.033 GB, free: 78.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 230 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007976/1.733, allocations: 222.6 kB / 1.033 GB, free: 78.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01645/1.75, allocations: 13.22 MB / 1.046 GB, free: 73.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/1.75, allocations: 3.25 kB / 1.046 GB, free: 73.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007209/1.757, allocations: 5.902 MB / 1.052 GB, free: 70.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003174/1.76, allocations: 0.6887 MB / 1.053 GB, free: 70.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/1.785, allocations: 16.88 MB / 1.069 GB, free: 60.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006488/1.792, allocations: 5.762 MB / 1.075 GB, free: 56.56 MB / 426.7 MB Notification: Performance of SimCode: time 4.4e-07/1.792, allocations: 0 / 1.075 GB, free: 56.56 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)