Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.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.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",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.0009952/0.0009953, allocations: 176.5 kB / 8.519 MB, free: 1.844 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.174/1.174, allocations: 221.4 MB / 230.3 MB, free: 7.68 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.0009705/0.0009705, allocations: 86.03 kB / 281.2 MB, free: 5.5 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.1552/0.1552, allocations: 44.14 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1636/0.3188, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.4043, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2503/0.6546, allocations: 106.5 MB / 0.5982 GB, free: 6.156 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.6549, allocations: 75.95 kB / 0.5983 GB, free: 6.082 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: 3105 * Number of variables: 3105 Notification: Performance of Generate backend data structure: time 0.5763/1.231, allocations: 177.5 MB / 0.7716 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/1.231, allocations: 13.41 kB / 0.7717 GB, free: 79.98 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01712/1.248, allocations: 3.151 MB / 0.7747 GB, free: 79.33 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02294/1.271, allocations: 9.524 MB / 0.784 GB, free: 76.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004984/1.272, allocations: 299.3 kB / 0.7843 GB, free: 76.57 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003123/1.275, allocations: 0.5384 MB / 0.7848 GB, free: 76.56 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01987/1.295, allocations: 12.79 MB / 0.7973 GB, free: 66.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02768/1.323, allocations: 18.31 MB / 0.8152 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003213/1.323, allocations: 91.2 kB / 0.8153 GB, free: 46.25 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001994/1.325, allocations: 44 kB / 0.8154 GB, free: 46.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002417/1.327, allocations: 1.982 MB / 0.8173 GB, free: 44.22 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08779/1.415, allocations: 85.97 MB / 0.9012 GB, free: 3.688 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003704/1.419, allocations: 2.831 MB / 0.904 GB, free: 0.7266 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2475/1.666, allocations: 1.502 MB / 0.9055 GB, free: 185.5 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/1.678, allocations: 7.614 MB / 0.9129 GB, free: 183.7 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/1.678, allocations: 52.34 kB / 0.913 GB, free: 183.7 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=164): time 4.248e-06/1.678, allocations: 0 / 0.913 GB, free: 183.7 MB / 0.5418 GB Notification: Performance of matching and sorting (n=164): time 0.01419/1.692, allocations: 4.802 MB / 0.9176 GB, free: 183.6 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/1.692, allocations: 143.6 kB / 0.9178 GB, free: 183.5 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006507/1.699, allocations: 5.343 MB / 0.923 GB, free: 183.1 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0001289/1.699, allocations: 27.83 kB / 0.923 GB, free: 183.1 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.002329/1.701, allocations: 5.667 MB / 0.9286 GB, free: 180 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004708/1.701, allocations: 0.6861 MB / 0.9292 GB, free: 179.7 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/1.702, allocations: 0 / 0.9292 GB, free: 179.7 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0003326/1.702, allocations: 0.6766 MB / 0.9299 GB, free: 179.4 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/1.705, allocations: 2.167 MB / 0.932 GB, free: 179.3 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004271/1.709, allocations: 8.06 MB / 0.9399 GB, free: 171.6 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004596/1.714, allocations: 4.142 MB / 0.9439 GB, free: 171.6 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.793e-05/1.714, allocations: 61.78 kB / 0.944 GB, free: 171.6 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1153) (initialization): time 0.01166/1.725, allocations: 8.769 MB / 0.9525 GB, free: 170.7 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.725, allocations: 5.125 kB / 0.9526 GB, free: 170.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.726, allocations: 213 kB / 0.9528 GB, free: 170.7 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/1.726, allocations: 315 kB / 0.9531 GB, free: 170.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005899/1.732, allocations: 2.146 MB / 0.9552 GB, free: 170.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001897/1.732, allocations: 419.9 kB / 0.9556 GB, free: 170.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006604/1.738, allocations: 1.135 MB / 0.9567 GB, free: 169.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000539/1.739, allocations: 0.5532 MB / 0.9572 GB, free: 169.8 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 88 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.torqueArrow.arrowLine.twoHeadedArrow,cutForce2b.torqueArrow.headAtOrigin,cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceArrow.arrowLine.twoHeadedArrow,cutForce2b.forceArrow.headAtOrigin,cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.torqueArrow.arrowLine.twoHeadedArrow,cutForce1b.torqueArrow.headAtOrigin,cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceArrow.arrowLine.twoHeadedArrow,cutForce1b.forceArrow.headAtOrigin,cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.torqueArrow.arrowLine.twoHeadedArrow,cutForce2a.torqueArrow.headAtOrigin,cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceArrow.arrowLine.twoHeadedArrow,cutForce2a.forceArrow.headAtOrigin,cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.torqueArrow.arrowLine.twoHeadedArrow,cutForce1a.torqueArrow.headAtOrigin,cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceArrow.arrowLine.twoHeadedArrow,cutForce1a.forceArrow.headAtOrigin,cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1129): * Single equations (assignments): 1126 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007344/1.74, allocations: 0.63 MB / 0.9578 GB, free: 169.3 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005145/1.74, allocations: 0.5267 MB / 0.9583 GB, free: 169.1 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/1.741, allocations: 0.6296 MB / 0.9589 GB, free: 169 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-05/1.741, allocations: 14.22 kB / 0.959 GB, free: 169 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.887e-05/1.741, allocations: 6.25 kB / 0.959 GB, free: 169 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.741, allocations: 11.38 kB / 0.959 GB, free: 169 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/1.763, allocations: 19.08 MB / 0.9776 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.477e-05/1.763, allocations: 27.12 kB / 0.9776 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/1.765, allocations: 275.3 kB / 0.9779 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.813e-05/1.765, allocations: 36.28 kB / 0.9779 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/1.765, allocations: 44.34 kB / 0.978 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.21e-05/1.765, allocations: 57.28 kB / 0.978 GB, free: 163.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.58e-05/1.765, allocations: 36.84 kB / 0.9781 GB, free: 163.1 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003671/1.768, allocations: 7.678 MB / 0.9856 GB, free: 155.9 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003481/1.772, allocations: 8.15 MB / 0.9935 GB, free: 148.2 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009349/1.773, allocations: 0.5853 MB / 0.9941 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006521/1.774, allocations: 39.69 kB / 0.9941 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002118/1.776, allocations: 143 kB / 0.9943 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/1.776, allocations: 153.6 kB / 0.9944 GB, free: 147.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/1.776, allocations: 82.2 kB / 0.9945 GB, free: 147.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.004652/1.781, allocations: 3.58 MB / 0.998 GB, free: 146.5 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.007978/1.789, allocations: 2.076 MB / 1 GB, free: 145.9 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003676/1.789, allocations: 179.2 kB / 1 GB, free: 145.8 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.006946/1.796, allocations: 5.099 MB / 1.005 GB, free: 142.9 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.796, allocations: 4 kB / 1.005 GB, free: 142.9 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/1.797, allocations: 1.036 MB / 1.006 GB, free: 142 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.8, allocations: 0.746 MB / 1.007 GB, free: 141.4 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.821, allocations: 13.5 MB / 1.02 GB, free: 128.8 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006855/1.828, allocations: 6.578 MB / 1.027 GB, free: 124 MB / 0.5418 GB Notification: Performance of SimCode: time 7.92e-07/1.828, allocations: 0 / 1.027 GB, free: 124 MB / 0.5418 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1)