Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001692/0.001692, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001968/0.001968, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2304/0.2304, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 81.7 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1177, allocations: 62.44 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01303/0.1308, allocations: 9.528 MB / 489.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007148/0.138, allocations: 2.92 MB / 492.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.1397, allocations: 47.94 kB / 492.7 MB, free: 8.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003951/0.1437, allocations: 1.998 MB / 494.7 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.1464, allocations: 1.109 MB / 495.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.1471, allocations: 299.4 kB / 496.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003057/0.1502, allocations: 2.322 MB / 498.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002757/0.153, allocations: 2.301 MB / 0.489 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001222/0.1542, allocations: 0.8839 MB / 0.4898 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.1557, allocations: 1.149 MB / 0.491 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003481/0.1561, allocations: 196 kB / 0.4912 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.1574, allocations: 0.6982 MB / 0.4918 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.1585, allocations: 1.107 MB / 0.4929 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001356/0.1599, allocations: 1.305 MB / 0.4942 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004308/0.1642, allocations: 4.163 MB / 0.4983 GB, free: 6.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1642, allocations: 0 / 0.4983 GB, free: 6.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1642, allocations: 0 / 0.4983 GB, free: 6.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.388e-05/0.1643, allocations: 0 / 0.4983 GB, free: 6.996 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.004942/0.1693, allocations: 2.853 MB / 0.501 GB, free: 4.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.1693, allocations: 12.03 kB / 0.5011 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006197/0.17, allocations: 487 kB / 0.5015 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005319/0.1753, allocations: 1.561 MB / 0.503 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/0.1777, allocations: 1.324 MB / 0.5043 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.1778, allocations: 147.8 kB / 0.5045 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003558/0.1782, allocations: 183.9 kB / 0.5047 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2318/0.4099, allocations: 6.24 MB / 0.5107 GB, free: 37.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.053e-05/0.4101, allocations: 15.33 kB / 0.5108 GB, free: 37.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002896/0.4104, allocations: 90.34 kB / 0.5108 GB, free: 37.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002334/0.4127, allocations: 1.346 MB / 0.5122 GB, free: 37.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/0.4234, allocations: 5.326 MB / 0.5174 GB, free: 35.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02313/0.4466, allocations: 20.18 MB / 0.5371 GB, free: 20.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.4499, allocations: 2.01 MB / 0.539 GB, free: 18.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006889/0.4506, allocations: 0.6875 MB / 0.5397 GB, free: 18.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004939/0.4556, allocations: 3.613 MB / 0.5432 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.4556, allocations: 38.98 kB / 0.5433 GB, free: 14.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 4.097e-06/0.4556, allocations: 0 / 0.5433 GB, free: 14.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004481/0.4601, allocations: 1.985 MB / 0.5452 GB, free: 12.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.4602, allocations: 55.84 kB / 0.5453 GB, free: 12.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.462, allocations: 1.937 MB / 0.5471 GB, free: 10.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.4621, allocations: 37.7 kB / 0.5472 GB, free: 10.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006089/0.4627, allocations: 1.832 MB / 0.549 GB, free: 8.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.4629, allocations: 312.1 kB / 0.5493 GB, free: 8.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005286/0.4634, allocations: 0.6229 MB / 0.5499 GB, free: 7.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.972e-05/0.4635, allocations: 357.9 kB / 0.5502 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009136/0.4644, allocations: 0.8842 MB / 0.5511 GB, free: 6.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.466, allocations: 2.751 MB / 0.5538 GB, free: 2.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003643/0.4696, allocations: 3.97 MB / 0.5576 GB, free: 13.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/0.4697, allocations: 20 kB / 0.5577 GB, free: 13.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00571/0.4754, allocations: 3.527 MB / 0.5611 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.4755, allocations: 35.28 kB / 0.5611 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.1e-05/0.4756, allocations: 68 kB / 0.5612 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.402e-05/0.4757, allocations: 87.94 kB / 0.5613 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/0.4775, allocations: 0.655 MB / 0.5619 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00012/0.4776, allocations: 131.4 kB / 0.5621 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.4795, allocations: 415.5 kB / 0.5625 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/0.4797, allocations: 192 kB / 0.5626 GB, free: 8.578 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002127/0.4819, allocations: 1.342 MB / 0.5639 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.4821, allocations: 153.9 kB / 0.5641 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003524/0.4825, allocations: 200.8 kB / 0.5643 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/0.4825, allocations: 8 kB / 0.5643 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.4826, allocations: 3.938 kB / 0.5643 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.4826, allocations: 3.984 kB / 0.5643 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006302/0.4889, allocations: 4.029 MB / 0.5682 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.4889, allocations: 4 kB / 0.5682 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000415/0.4893, allocations: 107.8 kB / 0.5683 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.4894, allocations: 8 kB / 0.5683 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-05/0.4894, allocations: 16 kB / 0.5684 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.164e-05/0.4894, allocations: 15.88 kB / 0.5684 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/0.4894, allocations: 8 kB / 0.5684 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.491, allocations: 1.261 MB / 0.5696 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003663/0.4914, allocations: 250.7 kB / 0.5699 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.4916, allocations: 16 kB / 0.5699 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000471/0.4921, allocations: 31.97 kB / 0.5699 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.4922, allocations: 55.77 kB / 0.57 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.004e-05/0.4922, allocations: 31.98 kB / 0.57 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00197/0.4942, allocations: 1.275 MB / 0.5712 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4942, allocations: 4 kB / 0.5712 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002616/0.4969, allocations: 0.6753 MB / 0.5719 GB, free: 14.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002239/0.4991, allocations: 1.881 MB / 0.5737 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003505/0.5026, allocations: 2.234 MB / 0.5759 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5026, allocations: 4 kB / 0.5759 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.5033, allocations: 471.2 kB / 0.5764 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.5046, allocations: 242.1 kB / 0.5766 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03296/0.5375, allocations: 22.09 MB / 0.5982 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002884/0.5405, allocations: 2.275 MB / 0.6004 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002377/0.5429, allocations: 0.9572 MB / 0.6013 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.5443, allocations: 1.042 MB / 0.6023 GB, free: 12.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5443, allocations: 0 / 0.6023 GB, free: 12.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06885/0.6132, allocations: 32 MB / 0.6336 GB, free: 12.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.692/9.305, allocations: 18.34 kB / 0.6336 GB, free: 12.67 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1)