Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00191/0.00191, allocations: 199.2 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009453/0.0009453, allocations: 94.38 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1692/0.1692, allocations: 45.15 MB / 383.3 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1875/0.3567, allocations: 69.36 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.4376, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2646/0.7022, allocations: 107.4 MB / 0.6088 GB, free: 11.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.7024, allocations: 78.08 kB / 0.6089 GB, free: 11.64 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.6152/1.318, allocations: 183.7 MB / 0.7882 GB, free: 95.46 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/1.318, allocations: 10.75 kB / 0.7883 GB, free: 95.46 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01501/1.333, allocations: 3.144 MB / 0.7913 GB, free: 94.86 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01632/1.349, allocations: 8.611 MB / 0.7997 GB, free: 93.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/1.349, allocations: 301.3 kB / 0.8 GB, free: 93.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001545/1.351, allocations: 0.5356 MB / 0.8005 GB, free: 93.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01816/1.369, allocations: 12.8 MB / 0.813 GB, free: 93.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02225/1.391, allocations: 18.32 MB / 0.8309 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002299/1.392, allocations: 88.97 kB / 0.831 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009929/1.393, allocations: 49.58 kB / 0.8311 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002258/1.395, allocations: 1.977 MB / 0.833 GB, free: 89.17 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08403/1.479, allocations: 85.97 MB / 0.9169 GB, free: 20.78 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003021/1.482, allocations: 2.82 MB / 0.9197 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/1.484, allocations: 1.51 MB / 0.9212 GB, free: 16.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/1.495, allocations: 7.616 MB / 0.9286 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/1.495, allocations: 51.56 kB / 0.9287 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=164): time 3.967e-06/1.495, allocations: 3.938 kB / 0.9287 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.01445/1.509, allocations: 4.799 MB / 0.9334 GB, free: 6.617 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/1.51, allocations: 145.5 kB / 0.9335 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00633/1.516, allocations: 5.341 MB / 0.9387 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/1.516, allocations: 26.64 kB / 0.9387 GB, free: 1.738 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003194/1.519, allocations: 5.67 MB / 0.9443 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005607/1.52, allocations: 0.6855 MB / 0.9449 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/1.52, allocations: 3.938 kB / 0.9449 GB, free: 12.06 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005125/1.521, allocations: 0.6753 MB / 0.9456 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003127/1.524, allocations: 2.165 MB / 0.9477 GB, free: 9.543 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.27/1.794, allocations: 8.066 MB / 0.9556 GB, free: 149.7 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00498/1.799, allocations: 4.144 MB / 0.9596 GB, free: 149.7 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.636e-05/1.799, allocations: 61.84 kB / 0.9597 GB, free: 149.7 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1153) (initialization): time 0.01156/1.81, allocations: 8.759 MB / 0.9683 GB, free: 149.6 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.81, allocations: 6.188 kB / 0.9683 GB, free: 149.6 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/1.81, allocations: 216.5 kB / 0.9685 GB, free: 149.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002262/1.811, allocations: 309.7 kB / 0.9688 GB, free: 149.6 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006127/1.817, allocations: 2.144 MB / 0.9709 GB, free: 149.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001912/1.817, allocations: 415.1 kB / 0.9712 GB, free: 149.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006945/1.824, allocations: 1.137 MB / 0.9724 GB, free: 149.3 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006285/1.825, allocations: 0.5535 MB / 0.9729 GB, free: 149.3 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.0007605/1.825, allocations: 0.6346 MB / 0.9735 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005912/1.826, allocations: 0.5298 MB / 0.974 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/1.827, allocations: 0.6252 MB / 0.9746 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/1.827, allocations: 20.58 kB / 0.9747 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/1.827, allocations: 0 / 0.9747 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/1.827, allocations: 13.05 kB / 0.9747 GB, free: 149 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02262/1.85, allocations: 19.08 MB / 0.9933 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/1.85, allocations: 21.22 kB / 0.9933 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/1.851, allocations: 279.5 kB / 0.9936 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-05/1.851, allocations: 34.22 kB / 0.9936 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/1.851, allocations: 46.17 kB / 0.9937 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.287e-05/1.851, allocations: 52.89 kB / 0.9937 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-05/1.851, allocations: 44.34 kB / 0.9938 GB, free: 147.5 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003653/1.855, allocations: 7.681 MB / 1.001 GB, free: 141 MB / 0.5418 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003503/1.858, allocations: 8.138 MB / 1.009 GB, free: 134.2 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009014/1.859, allocations: 0.5907 MB / 1.01 GB, free: 133.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006484/1.86, allocations: 40.67 kB / 1.01 GB, free: 133.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002161/1.862, allocations: 142.5 kB / 1.01 GB, free: 133.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/1.862, allocations: 157.8 kB / 1.01 GB, free: 133.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/1.863, allocations: 79.28 kB / 1.01 GB, free: 133.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 0.004098/1.867, allocations: 3.583 MB / 1.014 GB, free: 133.5 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.007501/1.874, allocations: 2.07 MB / 1.016 GB, free: 133.2 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.0003557/1.875, allocations: 190.5 kB / 1.016 GB, free: 133.1 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.006157/1.881, allocations: 5.096 MB / 1.021 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.881, allocations: 7.781 kB / 1.021 GB, free: 132.6 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/1.882, allocations: 1.035 MB / 1.022 GB, free: 132.5 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/1.885, allocations: 0.7465 MB / 1.023 GB, free: 132.5 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.906, allocations: 13.5 MB / 1.036 GB, free: 128.8 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007617/1.913, allocations: 6.582 MB / 1.042 GB, free: 127.9 MB / 0.5418 GB Notification: Performance of SimCode: time 9.22e-07/1.913, allocations: 0 / 1.042 GB, free: 127.9 MB / 0.5418 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1)