Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",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.0009497/0.0009497, allocations: 175.3 kB / 8.516 MB, free: 1.855 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.166/1.166, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.001014/0.001014, allocations: 99.66 kB / 281.2 MB, free: 5.477 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.1701/0.1701, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1994/0.3695, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.4687, allocations: 61.9 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2595/0.7282, allocations: 105.2 MB / 0.5969 GB, free: 7.523 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.7285, allocations: 75.97 kB / 0.597 GB, free: 7.449 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: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.5338/1.262, allocations: 153.4 MB / 0.7468 GB, free: 99.49 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/1.262, allocations: 19.34 kB / 0.7468 GB, free: 99.49 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/1.277, allocations: 2.896 MB / 0.7496 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01862/1.295, allocations: 8.863 MB / 0.7583 GB, free: 97.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/1.296, allocations: 248.5 kB / 0.7585 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001801/1.297, allocations: 447.3 kB / 0.7589 GB, free: 97.92 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01601/1.313, allocations: 10.69 MB / 0.7694 GB, free: 95.39 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02469/1.338, allocations: 15.62 MB / 0.7846 GB, free: 86.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002203/1.338, allocations: 90.5 kB / 0.7847 GB, free: 86.36 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009265/1.339, allocations: 44 kB / 0.7847 GB, free: 86.31 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001995/1.341, allocations: 1.725 MB / 0.7864 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.072/1.413, allocations: 77.67 MB / 0.8623 GB, free: 8.277 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/1.416, allocations: 2.452 MB / 0.8647 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/1.417, allocations: 1.333 MB / 0.866 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009996/1.427, allocations: 6.727 MB / 0.8726 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/1.427, allocations: 51.16 kB / 0.8726 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=134): time 3.848e-06/1.427, allocations: 4 kB / 0.8726 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=134): time 0.01165/1.439, allocations: 3.804 MB / 0.8763 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/1.439, allocations: 137.2 kB / 0.8765 GB, free: 9.344 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006767/1.446, allocations: 5.022 MB / 0.8814 GB, free: 4.316 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001304/1.446, allocations: 25.7 kB / 0.8814 GB, free: 4.285 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003083/1.449, allocations: 4.965 MB / 0.8862 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006059/1.45, allocations: 0.5793 MB / 0.8868 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/1.45, allocations: 0 / 0.8868 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004195/1.45, allocations: 0.6451 MB / 0.8874 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002682/1.453, allocations: 1.953 MB / 0.8893 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005672/1.459, allocations: 7.422 MB / 0.8966 GB, free: 1.832 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1431/1.602, allocations: 3.782 MB / 0.9003 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.664e-05/1.602, allocations: 59.47 kB / 0.9003 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.01121/1.613, allocations: 7.985 MB / 0.9081 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/1.613, allocations: 8.469 kB / 0.9081 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001503/1.613, allocations: 203.1 kB / 0.9083 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/1.613, allocations: 290.2 kB / 0.9086 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005528/1.619, allocations: 1.973 MB / 0.9105 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001756/1.619, allocations: 389.1 kB / 0.9109 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006253/1.625, allocations: 1.073 MB / 0.9119 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005566/1.626, allocations: 0.5096 MB / 0.9124 GB, free: 171.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 68 (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],cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[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],cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[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],cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1031): * Single equations (assignments): 1028 * 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.0007647/1.627, allocations: 0.58 MB / 0.913 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006423/1.627, allocations: 0.4938 MB / 0.9135 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009829/1.628, allocations: 0.5728 MB / 0.9141 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-05/1.628, allocations: 11.59 kB / 0.9141 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/1.628, allocations: 0 / 0.9141 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/1.628, allocations: 9.141 kB / 0.9141 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/1.644, allocations: 12.94 MB / 0.9267 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-05/1.644, allocations: 14.94 kB / 0.9267 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009199/1.645, allocations: 213.8 kB / 0.9269 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-05/1.645, allocations: 30.53 kB / 0.927 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.705e-05/1.645, allocations: 29.7 kB / 0.927 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.891e-05/1.645, allocations: 40.02 kB / 0.927 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/1.645, allocations: 27.25 kB / 0.9271 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00296/1.648, allocations: 5.779 MB / 0.9327 GB, free: 165.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003013/1.651, allocations: 6.24 MB / 0.9388 GB, free: 159.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008834/1.652, allocations: 0.5465 MB / 0.9393 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005694/1.653, allocations: 27.5 kB / 0.9394 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/1.655, allocations: 121.6 kB / 0.9395 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/1.655, allocations: 114.7 kB / 0.9396 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.571e-05/1.655, allocations: 56.22 kB / 0.9396 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004096/1.659, allocations: 3.384 MB / 0.9429 GB, free: 159.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006505/1.665, allocations: 1.737 MB / 0.9446 GB, free: 159 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 107 * 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.00032/1.666, allocations: 174.2 kB / 0.9448 GB, free: 158.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0054/1.671, allocations: 4.558 MB / 0.9492 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/1.671, allocations: 3.531 kB / 0.9493 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009307/1.672, allocations: 0.8437 MB / 0.9501 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/1.675, allocations: 0.6559 MB / 0.9507 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/1.692, allocations: 11.49 MB / 0.9619 GB, free: 153.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006214/1.698, allocations: 5.673 MB / 0.9675 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.062e-06/1.698, allocations: 2.812 kB / 0.9675 GB, free: 152.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1)