Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001614/0.001614, allocations: 197.8 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009381/0.0009381, allocations: 91.42 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1788/0.1788, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1861/0.3649, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.4447, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2624/0.7071, allocations: 106.1 MB / 0.6075 GB, free: 12.91 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.7074, allocations: 72.28 kB / 0.6075 GB, free: 12.88 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.5775/1.285, allocations: 159.6 MB / 0.7634 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/1.285, allocations: 7.938 kB / 0.7634 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/1.299, allocations: 2.896 MB / 0.7662 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01603/1.315, allocations: 7.958 MB / 0.774 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/1.315, allocations: 248.8 kB / 0.7742 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001562/1.317, allocations: 454.4 kB / 0.7746 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01435/1.331, allocations: 10.69 MB / 0.7851 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01743/1.349, allocations: 15.61 MB / 0.8003 GB, free: 96.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002135/1.349, allocations: 92.2 kB / 0.8004 GB, free: 96.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008185/1.35, allocations: 40.72 kB / 0.8004 GB, free: 96.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002042/1.352, allocations: 1.727 MB / 0.8021 GB, free: 96.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06759/1.419, allocations: 77.67 MB / 0.878 GB, free: 44.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/1.422, allocations: 2.447 MB / 0.8804 GB, free: 43.32 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/1.424, allocations: 1.339 MB / 0.8817 GB, free: 42.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/1.435, allocations: 6.725 MB / 0.8882 GB, free: 39.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/1.435, allocations: 49.56 kB / 0.8883 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=134): time 4.058e-06/1.435, allocations: 0 / 0.8883 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=134): time 0.01215/1.447, allocations: 3.807 MB / 0.892 GB, free: 38.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/1.447, allocations: 143.2 kB / 0.8921 GB, free: 38.26 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00666/1.454, allocations: 5.021 MB / 0.8971 GB, free: 35.08 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.813e-05/1.454, allocations: 25.7 kB / 0.8971 GB, free: 35.05 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001959/1.456, allocations: 4.957 MB / 0.9019 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/1.456, allocations: 0.5783 MB / 0.9025 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/1.457, allocations: 0 / 0.9025 GB, free: 30.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003193/1.457, allocations: 0.6484 MB / 0.9031 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/1.459, allocations: 1.958 MB / 0.905 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004236/1.464, allocations: 7.425 MB / 0.9123 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004069/1.468, allocations: 3.786 MB / 0.916 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.433e-05/1.468, allocations: 56 kB / 0.916 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.01041/1.478, allocations: 7.981 MB / 0.9238 GB, free: 7.633 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.478, allocations: 7.656 kB / 0.9238 GB, free: 7.629 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/1.478, allocations: 204.1 kB / 0.924 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/1.479, allocations: 288 kB / 0.9243 GB, free: 7.148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005671/1.484, allocations: 1.969 MB / 0.9262 GB, free: 5.414 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001702/1.484, allocations: 384.9 kB / 0.9266 GB, free: 5.078 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006364/1.491, allocations: 1.078 MB / 0.9276 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005416/1.491, allocations: 0.5152 MB / 0.9281 GB, free: 3.543 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.0006441/1.492, allocations: 0.5894 MB / 0.9287 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004898/1.493, allocations: 497.5 kB / 0.9292 GB, free: 2.457 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/1.494, allocations: 0.5649 MB / 0.9297 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/1.494, allocations: 15.91 kB / 0.9298 GB, free: 1.949 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/1.494, allocations: 4 kB / 0.9298 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/1.494, allocations: 7.594 kB / 0.9298 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.513, allocations: 13.04 MB / 0.9425 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/1.513, allocations: 20 kB / 0.9425 GB, free: 7.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/1.514, allocations: 202.7 kB / 0.9427 GB, free: 7.168 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.787e-05/1.514, allocations: 28 kB / 0.9427 GB, free: 7.141 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.515, allocations: 30.67 kB / 0.9428 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.34e-05/1.515, allocations: 37.12 kB / 0.9428 GB, free: 7.082 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-05/1.515, allocations: 27.88 kB / 0.9428 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004248/1.519, allocations: 5.785 MB / 0.9485 GB, free: 0.4961 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004149/1.523, allocations: 6.24 MB / 0.9546 GB, free: 9.48 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009602/1.524, allocations: 0.5445 MB / 0.9551 GB, free: 8.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006138/1.525, allocations: 27.7 kB / 0.9551 GB, free: 8.906 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/1.527, allocations: 116.9 kB / 0.9553 GB, free: 8.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/1.527, allocations: 113.5 kB / 0.9554 GB, free: 8.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.527, allocations: 67.8 kB / 0.9554 GB, free: 8.672 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.004582/1.532, allocations: 3.386 MB / 0.9587 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007242/1.539, allocations: 1.737 MB / 0.9604 GB, free: 3.988 MB / 0.5573 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.0003728/1.539, allocations: 171.5 kB / 0.9606 GB, free: 3.816 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.1496/1.689, allocations: 4.577 MB / 0.9651 GB, free: 179.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/1.689, allocations: 3.562 kB / 0.9651 GB, free: 179.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001013/1.69, allocations: 0.8463 MB / 0.9659 GB, free: 179.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/1.693, allocations: 0.6415 MB / 0.9665 GB, free: 179.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01764/1.71, allocations: 11.49 MB / 0.9777 GB, free: 176.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005981/1.716, allocations: 5.684 MB / 0.9833 GB, free: 175.4 MB / 0.5573 GB Notification: Performance of SimCode: time 7.11e-07/1.716, allocations: 0 / 0.9833 GB, free: 175.4 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1)