Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2",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.001526/0.001526, allocations: 202.3 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009685/0.0009685, allocations: 93.61 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1744/0.1744, allocations: 45.14 MB / 383.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1871/0.3615, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.4427, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2605/0.7033, allocations: 103.1 MB / 0.6046 GB, free: 15.83 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.7035, allocations: 74.58 kB / 0.6046 GB, free: 15.8 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.1408/0.8443, allocations: 55.74 MB / 0.6591 GB, free: 264 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.8443, allocations: 8 kB / 0.6591 GB, free: 256 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007368/0.8517, allocations: 1.476 MB / 0.6605 GB, free: 14.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/0.8552, allocations: 1.672 MB / 0.6622 GB, free: 13.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.052e-05/0.8553, allocations: 88 kB / 0.6622 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004521/0.8557, allocations: 156 kB / 0.6624 GB, free: 13.17 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0061/0.8618, allocations: 4.215 MB / 0.6665 GB, free: 8.949 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007832/0.8697, allocations: 5.849 MB / 0.6722 GB, free: 2.758 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.992e-05/0.8697, allocations: 11.88 kB / 0.6722 GB, free: 2.746 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003178/0.8701, allocations: 12 kB / 0.6722 GB, free: 2.734 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007007/0.8708, allocations: 0.669 MB / 0.6729 GB, free: 2.062 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02342/0.8942, allocations: 22.23 MB / 0.6946 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.8958, allocations: 1.375 MB / 0.6959 GB, free: 9.57 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000632/0.8964, allocations: 0.4989 MB / 0.6964 GB, free: 9.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.317e-05/0.8965, allocations: 20.55 kB / 0.6965 GB, free: 9.051 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.8965, allocations: 39.22 kB / 0.6965 GB, free: 9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=90): time 3.126e-06/0.8965, allocations: 0 / 0.6965 GB, free: 9 MB / 490.7 MB Notification: Performance of matching and sorting (n=90): time 0.003139/0.8997, allocations: 1.386 MB / 0.6978 GB, free: 7.609 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.8997, allocations: 60.09 kB / 0.6979 GB, free: 7.539 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/0.9016, allocations: 1.615 MB / 0.6995 GB, free: 5.922 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.9017, allocations: 25.7 kB / 0.6995 GB, free: 5.891 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009719/0.9027, allocations: 1.816 MB / 0.7013 GB, free: 4.043 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/0.9029, allocations: 347.6 kB / 0.7016 GB, free: 3.699 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.9031, allocations: 0 / 0.7016 GB, free: 3.699 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002775/0.9033, allocations: 0.4898 MB / 0.7021 GB, free: 3.199 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.9045, allocations: 0.8574 MB / 0.7029 GB, free: 2.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/0.9068, allocations: 2.879 MB / 0.7057 GB, free: 14.44 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.9088, allocations: 1.618 MB / 0.7073 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.576e-05/0.9089, allocations: 23.94 kB / 0.7073 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.004812/0.9137, allocations: 3.265 MB / 0.7105 GB, free: 9.523 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.9137, allocations: 4 kB / 0.7105 GB, free: 9.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.677e-05/0.9138, allocations: 72 kB / 0.7106 GB, free: 9.449 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.864e-05/0.9139, allocations: 104 kB / 0.7107 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/0.916, allocations: 0.7103 MB / 0.7114 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.715e-05/0.9161, allocations: 147.3 kB / 0.7115 GB, free: 8.492 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.9179, allocations: 355.6 kB / 0.7119 GB, free: 8.141 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/0.9181, allocations: 199.9 kB / 0.7121 GB, free: 7.945 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 26 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (393): * Single equations (assignments): 390 * 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.0003275/0.9185, allocations: 301.6 kB / 0.7124 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.9187, allocations: 153.9 kB / 0.7125 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.9205, allocations: 1.17 MB / 0.7136 GB, free: 6.301 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-05/0.9205, allocations: 8 kB / 0.7136 GB, free: 6.293 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.9205, allocations: 3.906 kB / 0.7137 GB, free: 6.289 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.9205, allocations: 3.984 kB / 0.7137 GB, free: 6.285 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/0.9262, allocations: 3.91 MB / 0.7175 GB, free: 2.195 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.9262, allocations: 8.906 kB / 0.7175 GB, free: 2.188 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.9267, allocations: 111.8 kB / 0.7176 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.9267, allocations: 12 kB / 0.7176 GB, free: 2.066 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.763e-05/0.9268, allocations: 16 kB / 0.7176 GB, free: 2.051 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/0.9268, allocations: 19.92 kB / 0.7176 GB, free: 2.031 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.9268, allocations: 11.94 kB / 0.7176 GB, free: 2.02 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001735/0.9286, allocations: 1.837 MB / 0.7194 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00182/0.9304, allocations: 2.228 MB / 0.7216 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.9307, allocations: 234.8 kB / 0.7218 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.9309, allocations: 12 kB / 0.7219 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/0.9314, allocations: 15.98 kB / 0.7219 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.9315, allocations: 59.64 kB / 0.7219 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/0.9316, allocations: 35.91 kB / 0.722 GB, free: 13.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001263/0.9329, allocations: 1.074 MB / 0.723 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002809/0.9357, allocations: 0.6646 MB / 0.7237 GB, free: 11.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * 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.0002646/0.936, allocations: 135 kB / 0.7238 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002517/0.9385, allocations: 2.041 MB / 0.7258 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.9385, allocations: 0 / 0.7258 GB, free: 9.109 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006632/0.9392, allocations: 0.5252 MB / 0.7263 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007596/0.9399, allocations: 183.1 kB / 0.7265 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006749/0.9467, allocations: 4.357 MB / 0.7307 GB, free: 3.902 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002825/0.9495, allocations: 2.529 MB / 0.7332 GB, free: 1.34 MB / 0.5105 GB Notification: Performance of SimCode: time 2.475e-06/0.9495, allocations: 0 / 0.7332 GB, free: 1.34 MB / 0.5105 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1)