Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.0009202/0.0009202, allocations: 183.1 kB / 8.138 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.04/1.04, allocations: 221.4 MB / 229.9 MB, free: 3.059 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.000908/0.000908, allocations: 94.27 kB / 280.8 MB, free: 1.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08353/0.08447, allocations: 55.82 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.2468, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08815/0.335, allocations: 95.06 MB / 482.1 MB, free: 7.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3352, allocations: 87.88 kB / 482.1 MB, free: 7.594 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.3842/0.7194, allocations: 127.2 MB / 0.5951 GB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.865e-05/0.7195, allocations: 8 kB / 0.5951 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02954/0.749, allocations: 9.003 MB / 0.6039 GB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/0.7651, allocations: 8.173 MB / 0.6119 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.7653, allocations: 184 kB / 0.6121 GB, free: 11.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009552/0.7663, allocations: 343.8 kB / 0.6124 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01165/0.7779, allocations: 9.199 MB / 0.6214 GB, free: 1.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.7926, allocations: 13.33 MB / 0.6344 GB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001736/0.7928, allocations: 91.14 kB / 0.6345 GB, free: 2.945 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005856/0.7934, allocations: 36 kB / 0.6345 GB, free: 2.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001695/0.7951, allocations: 1.548 MB / 0.636 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1576/0.9527, allocations: 64.5 MB / 0.699 GB, free: 72.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006138/0.9589, allocations: 7.167 MB / 0.706 GB, free: 72.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004238/0.9632, allocations: 5.512 MB / 0.7114 GB, free: 72.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01577/0.979, allocations: 14.12 MB / 0.7252 GB, free: 69.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.979, allocations: 72.41 kB / 0.7253 GB, free: 69.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 5.7e-06/0.979, allocations: 0 / 0.7253 GB, free: 69.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.1541/1.133, allocations: 72.53 MB / 0.7961 GB, free: 31.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/1.133, allocations: 268.6 kB / 0.7963 GB, free: 31.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004497/1.138, allocations: 4.009 MB / 0.8003 GB, free: 27.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008947/1.139, allocations: 29.64 kB / 0.8003 GB, free: 27.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/1.14, allocations: 3.558 MB / 0.8038 GB, free: 24.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001776/1.142, allocations: 2.039 MB / 0.8058 GB, free: 22.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007754/1.142, allocations: 0.625 kB / 0.8058 GB, free: 22.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000323/1.143, allocations: 0.7152 MB / 0.8064 GB, free: 22.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008429/1.151, allocations: 8.586 MB / 0.8148 GB, free: 14.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009538/1.161, allocations: 12.77 MB / 0.8273 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.121/1.282, allocations: 11.27 MB / 0.8383 GB, free: 98.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.874e-05/1.282, allocations: 42.69 kB / 0.8384 GB, free: 98.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.07753/1.359, allocations: 38.57 MB / 0.876 GB, free: 98.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/1.359, allocations: 7.391 kB / 0.876 GB, free: 98.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.359, allocations: 146.4 kB / 0.8762 GB, free: 98.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06219/1.422, allocations: 20.86 MB / 0.8965 GB, free: 95.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0047/1.426, allocations: 1.476 MB / 0.898 GB, free: 95.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.272/1.698, allocations: 126.3 MB / 1.021 GB, free: 89.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008959/1.707, allocations: 408.6 kB / 1.022 GB, free: 89.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.708, allocations: 0.5405 MB / 1.022 GB, free: 89.86 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (799): * Single equations (assignments): 792 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.001691/1.71, allocations: 489.7 kB / 1.023 GB, free: 89.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.711, allocations: 0.5471 MB / 1.023 GB, free: 89.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06956/1.781, allocations: 35.08 MB / 1.058 GB, free: 79.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.379e-05/1.781, allocations: 55.78 kB / 1.058 GB, free: 79.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-05/1.781, allocations: 66.59 kB / 1.058 GB, free: 79.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-05/1.781, allocations: 35.03 kB / 1.058 GB, free: 79.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09382/1.875, allocations: 55.07 MB / 1.111 GB, free: 39.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/1.875, allocations: 4 kB / 1.111 GB, free: 39.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/1.876, allocations: 262 kB / 1.112 GB, free: 39.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.168/2.044, allocations: 20.13 MB / 1.131 GB, free: 87.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001198/2.046, allocations: 10.94 kB / 1.131 GB, free: 87.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1465/2.192, allocations: 116.9 MB / 1.246 GB, free: 42.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/2.192, allocations: 6.25 kB / 1.246 GB, free: 42.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1921/2.384, allocations: 47.8 MB / 1.292 GB, free: 83.16 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1216/2.506, allocations: 89.14 MB / 1.379 GB, free: 50.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/2.507, allocations: 0.5532 MB / 1.38 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/2.508, allocations: 5.031 kB / 1.38 GB, free: 49.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005256/2.514, allocations: 264.3 kB / 1.38 GB, free: 49.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001059/2.515, allocations: 273.8 kB / 1.38 GB, free: 49.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007015/2.516, allocations: 139.4 kB / 1.38 GB, free: 49.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003178/2.519, allocations: 2.758 MB / 1.383 GB, free: 46.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01035/2.529, allocations: 2.844 MB / 1.386 GB, free: 43.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009502/2.53, allocations: 155.5 kB / 1.386 GB, free: 43.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1413/2.671, allocations: 22.87 MB / 1.408 GB, free: 90.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/2.671, allocations: 0 / 1.408 GB, free: 90.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01837/2.69, allocations: 12.44 MB / 1.421 GB, free: 90.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/2.693, allocations: 0.5205 MB / 1.421 GB, free: 90.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03359/2.726, allocations: 21.41 MB / 1.442 GB, free: 87.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005301/2.732, allocations: 5.333 MB / 1.447 GB, free: 86.89 MB / 426.7 MB Notification: Performance of SimCode: time 6.42e-07/2.732, allocations: 0 / 1.447 GB, free: 86.89 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)