Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2",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.001584/0.001584, allocations: 186 kB / 8.524 MB, free: 1.812 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.247/1.247, allocations: 221.4 MB / 230.3 MB, free: 7.789 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.00104/0.00104, allocations: 88.73 kB / 281.2 MB, free: 5.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.164/0.164, allocations: 44.16 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1915/0.3555, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.4569, allocations: 61.9 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2976/0.7545, allocations: 106.3 MB / 0.598 GB, free: 6.422 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.7548, allocations: 72.61 kB / 0.5981 GB, free: 6.352 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.531/1.286, allocations: 134.4 MB / 0.7294 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/1.286, allocations: 13.66 kB / 0.7294 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03519/1.321, allocations: 9.014 MB / 0.7382 GB, free: 99.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01976/1.341, allocations: 8.182 MB / 0.7462 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003189/1.341, allocations: 210.3 kB / 0.7464 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002454/1.344, allocations: 388 kB / 0.7467 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0157/1.359, allocations: 8.706 MB / 0.7552 GB, free: 98.91 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02608/1.385, allocations: 13.56 MB / 0.7685 GB, free: 91.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004452/1.386, allocations: 95.11 kB / 0.7686 GB, free: 91.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001547/1.388, allocations: 46.69 kB / 0.7686 GB, free: 91.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001815/1.389, allocations: 1.444 MB / 0.77 GB, free: 91.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06603/1.455, allocations: 66.52 MB / 0.835 GB, free: 35.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005458/1.461, allocations: 4.468 MB / 0.8393 GB, free: 31.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003198/1.464, allocations: 2.98 MB / 0.8423 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/1.478, allocations: 8.61 MB / 0.8507 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/1.478, allocations: 61.56 kB / 0.8507 GB, free: 19.72 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=184): time 5.41e-06/1.478, allocations: 0 / 0.8507 GB, free: 19.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.04116/1.519, allocations: 21.07 MB / 0.8713 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/1.519, allocations: 256.7 kB / 0.8715 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007737/1.527, allocations: 4.706 MB / 0.8761 GB, free: 9.488 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003785/1.527, allocations: 25.7 kB / 0.8762 GB, free: 9.457 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002967/1.53, allocations: 4.245 MB / 0.8803 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001052/1.531, allocations: 0.7985 MB / 0.8811 GB, free: 4.344 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/1.532, allocations: 0.75 kB / 0.8811 GB, free: 4.344 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000448/1.532, allocations: 0.6486 MB / 0.8817 GB, free: 3.688 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00346/1.535, allocations: 2.355 MB / 0.884 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006116/1.542, allocations: 7.391 MB / 0.8912 GB, free: 7.387 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005679/1.547, allocations: 4.185 MB / 0.8953 GB, free: 3.199 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-05/1.547, allocations: 55.91 kB / 0.8954 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1036) (initialization): time 0.1838/1.731, allocations: 9.066 MB / 0.9042 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/1.731, allocations: 9.078 kB / 0.9042 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001756/1.731, allocations: 184.2 kB / 0.9044 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001779/1.733, allocations: 0.7914 MB / 0.9052 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/1.739, allocations: 1.781 MB / 0.9069 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008025/1.747, allocations: 7.833 MB / 0.9146 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006045/1.753, allocations: 241.2 kB / 0.9148 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/1.755, allocations: 498.2 kB / 0.9153 GB, free: 166.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (973): * Single equations (assignments): 967 * 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: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001186/1.756, allocations: 0.5578 MB / 0.9158 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/1.757, allocations: 484.8 kB / 0.9163 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005365/1.762, allocations: 3.256 MB / 0.9195 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.137e-05/1.762, allocations: 17.47 kB / 0.9195 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/1.762, allocations: 6.844 kB / 0.9195 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/1.762, allocations: 14.95 kB / 0.9195 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.778, allocations: 8.207 MB / 0.9275 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.778, allocations: 2.844 kB / 0.9275 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/1.779, allocations: 278.3 kB / 0.9278 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/1.781, allocations: 0.4987 MB / 0.9283 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/1.781, allocations: 9.094 kB / 0.9283 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006216/1.787, allocations: 6.917 MB / 0.935 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.787, allocations: 1.875 kB / 0.935 GB, free: 162.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00731/1.794, allocations: 6.077 MB / 0.941 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009242/1.804, allocations: 8.536 MB / 0.9493 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/1.805, allocations: 0.5004 MB / 0.9498 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/1.806, allocations: 3.062 kB / 0.9498 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/1.809, allocations: 61.7 kB / 0.9499 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/1.809, allocations: 87.95 kB / 0.9499 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/1.809, allocations: 54.91 kB / 0.95 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004696/1.814, allocations: 3.194 MB / 0.9531 GB, free: 157.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007533/1.821, allocations: 1.192 MB / 0.9543 GB, free: 157.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 151 * 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: 3 {(1,100.0%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000435/1.822, allocations: 149.8 kB / 0.9544 GB, free: 157 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007511/1.829, allocations: 5.88 MB / 0.9602 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.829, allocations: 0 / 0.9602 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002026/1.831, allocations: 1.824 MB / 0.9619 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/1.834, allocations: 0.5951 MB / 0.9625 GB, free: 154 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/1.857, allocations: 10.91 MB / 0.9732 GB, free: 150.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007326/1.864, allocations: 5.144 MB / 0.9782 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.002e-06/1.864, allocations: 0 / 0.9782 GB, free: 147.4 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1)