Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009965/0.0009965, allocations: 181.9 kB / 8.521 MB, free: 1.824 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.183/1.183, allocations: 221.4 MB / 230.3 MB, free: 7.668 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.0009157/0.0009157, allocations: 94.34 kB / 281.2 MB, free: 5.461 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.1607/0.1607, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1678/0.3285, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08941/0.418, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2489/0.6669, allocations: 102.1 MB / 0.5938 GB, free: 10.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.6672, allocations: 75.97 kB / 0.5939 GB, free: 10.59 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.1363/0.8035, allocations: 54.32 MB / 0.647 GB, free: 3.844 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.8036, allocations: 15.94 kB / 0.647 GB, free: 3.828 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007355/0.8109, allocations: 1.47 MB / 0.6484 GB, free: 2.352 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/0.8144, allocations: 1.68 MB / 0.6501 GB, free: 0.625 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.724e-05/0.8145, allocations: 88 kB / 0.6501 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005415/0.815, allocations: 160 kB / 0.6503 GB, free: 392 kB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006064/0.8211, allocations: 4.215 MB / 0.6544 GB, free: 12.16 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007746/0.8288, allocations: 5.841 MB / 0.6601 GB, free: 5.977 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.845e-05/0.8289, allocations: 15.88 kB / 0.6601 GB, free: 5.961 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003049/0.8292, allocations: 11.94 kB / 0.6601 GB, free: 5.949 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007197/0.83, allocations: 0.6767 MB / 0.6608 GB, free: 5.273 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02378/0.8538, allocations: 22.23 MB / 0.6825 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.8553, allocations: 1.382 MB / 0.6839 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006267/0.8559, allocations: 0.5028 MB / 0.6843 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.856, allocations: 4.656 kB / 0.6843 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.856, allocations: 43.12 kB / 0.6844 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=90): time 3.797e-06/0.856, allocations: 0 / 0.6844 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=90): time 0.003088/0.8591, allocations: 1.402 MB / 0.6858 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.8592, allocations: 56.06 kB / 0.6858 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/0.8611, allocations: 1.6 MB / 0.6874 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.8612, allocations: 25.7 kB / 0.6874 GB, free: 9.117 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.8622, allocations: 1.828 MB / 0.6892 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002753/0.8625, allocations: 343.6 kB / 0.6895 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.667e-05/0.8626, allocations: 0 / 0.6895 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002769/0.8629, allocations: 0.4899 MB / 0.69 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.864, allocations: 0.8613 MB / 0.6908 GB, free: 5.555 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002317/0.8663, allocations: 2.871 MB / 0.6936 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00195/0.8683, allocations: 1.622 MB / 0.6952 GB, free: 40 kB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.379e-05/0.8683, allocations: 27.91 kB / 0.6952 GB, free: 12 kB / 0.4948 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.004673/0.873, allocations: 3.258 MB / 0.6984 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.873, allocations: 8.031 kB / 0.6984 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-05/0.8731, allocations: 75.98 kB / 0.6985 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.712e-05/0.8732, allocations: 108 kB / 0.6986 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/0.8753, allocations: 0.7056 MB / 0.6993 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-05/0.8754, allocations: 139.5 kB / 0.6994 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.8771, allocations: 367.4 kB / 0.6998 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002256/0.8773, allocations: 200 kB / 0.7 GB, free: 11.16 MB / 0.5105 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.0003036/0.8776, allocations: 289.9 kB / 0.7003 GB, free: 10.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.8778, allocations: 161.8 kB / 0.7004 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.8794, allocations: 1.17 MB / 0.7015 GB, free: 9.52 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.883e-05/0.8795, allocations: 12 kB / 0.7016 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.8795, allocations: 0 / 0.7016 GB, free: 9.508 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.8795, allocations: 7.891 kB / 0.7016 GB, free: 9.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005482/0.885, allocations: 3.899 MB / 0.7054 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.885, allocations: 8 kB / 0.7054 GB, free: 5.414 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004919/0.8855, allocations: 115.8 kB / 0.7055 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.8855, allocations: 8 kB / 0.7055 GB, free: 5.293 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.8856, allocations: 19.98 kB / 0.7055 GB, free: 5.273 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.939e-06/0.8856, allocations: 15.94 kB / 0.7055 GB, free: 5.258 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.8856, allocations: 7.938 kB / 0.7055 GB, free: 5.25 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001677/0.8873, allocations: 1.837 MB / 0.7073 GB, free: 3.121 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001716/0.889, allocations: 2.24 MB / 0.7095 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.8893, allocations: 238.8 kB / 0.7098 GB, free: 352 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001977/0.8895, allocations: 15.98 kB / 0.7098 GB, free: 336 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004916/0.89, allocations: 8 kB / 0.7098 GB, free: 328 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.593e-05/0.8901, allocations: 59.78 kB / 0.7098 GB, free: 268 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-05/0.8901, allocations: 32 kB / 0.7099 GB, free: 236 kB / 0.5105 GB Notification: Performance of sort global known variables: time 0.1585/1.049, allocations: 1.068 MB / 0.7109 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003049/1.052, allocations: 0.6678 MB / 0.7116 GB, free: 129.9 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.0002697/1.052, allocations: 140.5 kB / 0.7117 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00199/1.054, allocations: 2.036 MB / 0.7137 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/1.054, allocations: 7.859 kB / 0.7137 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000488/1.055, allocations: 0.5164 MB / 0.7142 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007039/1.055, allocations: 173.9 kB / 0.7144 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/1.061, allocations: 4.358 MB / 0.7186 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002191/1.063, allocations: 2.529 MB / 0.7211 GB, free: 128 MB / 0.5105 GB Notification: Performance of SimCode: time 8.62e-07/1.063, allocations: 0 / 0.7211 GB, free: 128 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1)