Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00195/0.001949, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002321/0.002321, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2321/0.2321, allocations: 46.11 MB / 344.2 MB, free: 11.53 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.003049/0.003049, allocations: 76.5 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1578, allocations: 62.45 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.0126/0.1705, allocations: 9.511 MB / 489.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00666/0.1772, allocations: 2.932 MB / 492.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.1785, allocations: 51.88 kB / 492.7 MB, free: 8.551 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004171/0.1827, allocations: 1.994 MB / 494.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003095/0.1859, allocations: 1.108 MB / 495.8 MB, free: 5.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008392/0.1867, allocations: 287.5 kB / 496.1 MB, free: 5.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003413/0.1902, allocations: 2.33 MB / 498.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002914/0.1931, allocations: 2.312 MB / 0.489 GB, free: 480 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.1944, allocations: 0.8801 MB / 0.4898 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.1958, allocations: 1.153 MB / 0.491 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.1962, allocations: 196 kB / 0.4912 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.1975, allocations: 0.6943 MB / 0.4918 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.1987, allocations: 1.106 MB / 0.4929 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.2001, allocations: 1.305 MB / 0.4942 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004834/0.2049, allocations: 4.159 MB / 0.4983 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.205, allocations: 3.984 kB / 0.4983 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.205, allocations: 0 / 0.4983 GB, free: 6.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.751e-05/0.2051, allocations: 0 / 0.4983 GB, free: 6.945 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.005277/0.2104, allocations: 2.861 MB / 0.5011 GB, free: 4.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.2104, allocations: 12.03 kB / 0.5011 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005992/0.211, allocations: 479.1 kB / 0.5015 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005149/0.2162, allocations: 1.557 MB / 0.503 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/0.219, allocations: 1.324 MB / 0.5043 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.2191, allocations: 151.8 kB / 0.5045 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003866/0.2195, allocations: 183.9 kB / 0.5047 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1968/0.4163, allocations: 6.243 MB / 0.5108 GB, free: 37.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.244e-05/0.4164, allocations: 13.47 kB / 0.5108 GB, free: 37.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002291/0.4166, allocations: 88.2 kB / 0.5108 GB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001833/0.4185, allocations: 1.341 MB / 0.5122 GB, free: 37.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009574/0.4281, allocations: 5.334 MB / 0.5174 GB, free: 35.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02418/0.4523, allocations: 20.17 MB / 0.5371 GB, free: 20.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003405/0.4557, allocations: 2.013 MB / 0.539 GB, free: 18.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.4565, allocations: 0.6914 MB / 0.5397 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004877/0.4614, allocations: 3.612 MB / 0.5432 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.4614, allocations: 39 kB / 0.5433 GB, free: 14.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.394e-06/0.4614, allocations: 0 / 0.5433 GB, free: 14.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004549/0.466, allocations: 1.983 MB / 0.5452 GB, free: 12.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.466, allocations: 63.78 kB / 0.5453 GB, free: 12.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/0.468, allocations: 1.929 MB / 0.5471 GB, free: 10.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.4681, allocations: 37.7 kB / 0.5472 GB, free: 10.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006962/0.4688, allocations: 1.833 MB / 0.549 GB, free: 8.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.469, allocations: 320 kB / 0.5493 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005728/0.4696, allocations: 0.619 MB / 0.5499 GB, free: 7.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.829e-05/0.4696, allocations: 353.9 kB / 0.5502 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000941/0.4706, allocations: 0.8881 MB / 0.5511 GB, free: 6.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.4721, allocations: 2.754 MB / 0.5538 GB, free: 2.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/0.4759, allocations: 3.966 MB / 0.5577 GB, free: 13.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.476, allocations: 20 kB / 0.5577 GB, free: 13.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005527/0.4815, allocations: 3.515 MB / 0.5611 GB, free: 9.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.834e-05/0.4816, allocations: 36.94 kB / 0.5611 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.294e-05/0.4817, allocations: 64 kB / 0.5612 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.934e-05/0.4818, allocations: 91.94 kB / 0.5613 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.4836, allocations: 0.6628 MB / 0.5619 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001069/0.4837, allocations: 127.5 kB / 0.5621 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.4854, allocations: 415.4 kB / 0.5625 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.4857, allocations: 188 kB / 0.5626 GB, free: 8.375 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.001876/0.4875, allocations: 1.35 MB / 0.564 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.4878, allocations: 153.9 kB / 0.5641 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.4881, allocations: 196.8 kB / 0.5643 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.4881, allocations: 12 kB / 0.5643 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4881, allocations: 0 / 0.5643 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.4882, allocations: 0 / 0.5643 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006047/0.4942, allocations: 4.036 MB / 0.5682 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.4942, allocations: 8 kB / 0.5682 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004005/0.4946, allocations: 99.83 kB / 0.5683 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.4947, allocations: 8 kB / 0.5683 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.4947, allocations: 23.98 kB / 0.5684 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.65e-05/0.4947, allocations: 15.94 kB / 0.5684 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.4948, allocations: 7.938 kB / 0.5684 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.4963, allocations: 1.265 MB / 0.5696 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.4967, allocations: 238.8 kB / 0.5699 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.4968, allocations: 23.98 kB / 0.5699 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.4973, allocations: 23.98 kB / 0.5699 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.4974, allocations: 63.81 kB / 0.57 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.4975, allocations: 24 kB / 0.57 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00179/0.4993, allocations: 1.275 MB / 0.5712 GB, free: 15.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4993, allocations: 3.938 kB / 0.5712 GB, free: 15.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002382/0.5017, allocations: 0.679 MB / 0.5719 GB, free: 14.61 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.002048/0.5037, allocations: 1.873 MB / 0.5737 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003489/0.5072, allocations: 2.249 MB / 0.5759 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.5073, allocations: 3.938 kB / 0.5759 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006568/0.5079, allocations: 467 kB / 0.5764 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5092, allocations: 231.2 kB / 0.5766 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03634/0.5455, allocations: 22.09 MB / 0.5982 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003676/0.5493, allocations: 2.271 MB / 0.6004 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002545/0.5518, allocations: 0.9572 MB / 0.6013 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/0.5534, allocations: 1.042 MB / 0.6023 GB, free: 12.35 MB / 446.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5534, allocations: 0 / 0.6023 GB, free: 12.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06806/0.6215, allocations: 32 MB / 0.6336 GB, free: 12.48 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.849/9.47, allocations: 18.33 kB / 0.6336 GB, free: 12.46 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1)