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.002069/0.00207, allocations: 104 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.002305/0.002305, 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.51/1.51, allocations: 227.4 MB / 246.8 MB, free: 10.53 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.2324/0.2324, allocations: 46.1 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.002228/0.002228, allocations: 80.95 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1271, allocations: 62.46 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01203/0.1392, allocations: 9.518 MB / 489.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00653/0.1457, allocations: 2.928 MB / 492.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.1468, allocations: 47.94 kB / 492.7 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003869/0.1507, allocations: 1.998 MB / 494.7 MB, free: 6.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.1534, allocations: 1.112 MB / 495.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006952/0.1541, allocations: 283.5 kB / 496.1 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003004/0.1571, allocations: 2.322 MB / 498.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002668/0.1598, allocations: 2.313 MB / 0.489 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.1609, allocations: 0.8839 MB / 0.4899 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001413/0.1624, allocations: 1.149 MB / 0.491 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003253/0.1627, allocations: 192 kB / 0.4912 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.1639, allocations: 0.6982 MB / 0.4918 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001039/0.165, allocations: 1.106 MB / 0.4929 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00129/0.1663, allocations: 1.308 MB / 0.4942 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004358/0.1707, allocations: 4.159 MB / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1707, allocations: 0 / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1707, allocations: 0 / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.1708, allocations: 4 kB / 0.4983 GB, free: 7.004 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.005026/0.1758, allocations: 2.857 MB / 0.5011 GB, free: 4.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.1759, allocations: 15.97 kB / 0.5011 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006792/0.1766, allocations: 479.1 kB / 0.5015 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005341/0.1819, allocations: 1.557 MB / 0.503 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/0.1849, allocations: 1.324 MB / 0.5043 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.1851, allocations: 147.8 kB / 0.5045 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005023/0.1856, allocations: 187.9 kB / 0.5047 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2079/0.3936, allocations: 6.238 MB / 0.5108 GB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.596e-05/0.3937, allocations: 13.95 kB / 0.5108 GB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/0.3939, allocations: 89.27 kB / 0.5108 GB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001943/0.3959, allocations: 1.343 MB / 0.5122 GB, free: 36.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009926/0.4058, allocations: 5.332 MB / 0.5174 GB, free: 35.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0232/0.429, allocations: 20.16 MB / 0.5371 GB, free: 20.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003387/0.4325, allocations: 2.01 MB / 0.539 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006923/0.4332, allocations: 0.694 MB / 0.5397 GB, free: 17.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004837/0.438, allocations: 3.616 MB / 0.5432 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.4381, allocations: 39 kB / 0.5433 GB, free: 14.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.216e-06/0.4381, allocations: 4 kB / 0.5433 GB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004561/0.4427, allocations: 1.981 MB / 0.5452 GB, free: 12.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.476e-05/0.4427, allocations: 59.78 kB / 0.5453 GB, free: 12.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001765/0.4445, allocations: 1.937 MB / 0.5472 GB, free: 10.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.4445, allocations: 37.7 kB / 0.5472 GB, free: 10.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006139/0.4452, allocations: 1.832 MB / 0.549 GB, free: 8.273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.4453, allocations: 316 kB / 0.5493 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005171/0.4458, allocations: 0.6112 MB / 0.5499 GB, free: 7.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.356e-05/0.4459, allocations: 357.9 kB / 0.5502 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.4469, allocations: 0.8881 MB / 0.5511 GB, free: 6.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.4484, allocations: 2.751 MB / 0.5538 GB, free: 2.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003773/0.4522, allocations: 3.974 MB / 0.5577 GB, free: 13.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.71e-05/0.4522, allocations: 20 kB / 0.5577 GB, free: 13.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005744/0.458, allocations: 3.517 MB / 0.5611 GB, free: 9.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.407e-05/0.4581, allocations: 32 kB / 0.5611 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.527e-05/0.4581, allocations: 71.94 kB / 0.5612 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-05/0.4582, allocations: 91.94 kB / 0.5613 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001893/0.4601, allocations: 0.6589 MB / 0.5619 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001187/0.4603, allocations: 123.5 kB / 0.5621 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.462, allocations: 419.8 kB / 0.5625 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/0.4623, allocations: 188 kB / 0.5626 GB, free: 8.395 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.002003/0.4643, allocations: 1.342 MB / 0.5639 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.4645, allocations: 153.9 kB / 0.5641 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003473/0.4649, allocations: 200.8 kB / 0.5643 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.4649, allocations: 8 kB / 0.5643 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.4649, allocations: 3.984 kB / 0.5643 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.465, allocations: 4 kB / 0.5643 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006213/0.4712, allocations: 4.024 MB / 0.5682 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.4712, allocations: 4 kB / 0.5682 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.4716, allocations: 104.7 kB / 0.5683 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-05/0.4716, allocations: 8 kB / 0.5683 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.4717, allocations: 27.98 kB / 0.5684 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.465e-05/0.4717, allocations: 11.94 kB / 0.5684 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.4717, allocations: 8 kB / 0.5684 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.4733, allocations: 1.268 MB / 0.5696 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.4736, allocations: 246.8 kB / 0.5699 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.4738, allocations: 19.98 kB / 0.5699 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.4742, allocations: 23.98 kB / 0.5699 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4744, allocations: 59.83 kB / 0.57 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.466e-05/0.4744, allocations: 31.98 kB / 0.57 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001733/0.4761, allocations: 1.271 MB / 0.5712 GB, free: 15.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.185e-06/0.4762, allocations: 0 / 0.5712 GB, free: 15.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00238/0.4785, allocations: 0.6829 MB / 0.5719 GB, free: 14.63 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.00206/0.4806, allocations: 1.873 MB / 0.5737 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003689/0.4843, allocations: 2.251 MB / 0.5759 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4843, allocations: 448 / 0.5759 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006395/0.485, allocations: 468.1 kB / 0.5764 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.4863, allocations: 238.5 kB / 0.5766 GB, free: 9.734 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/0.5177, allocations: 22.08 MB / 0.5982 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002866/0.5206, allocations: 2.275 MB / 0.6004 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002318/0.5229, allocations: 0.9611 MB / 0.6013 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/0.5244, allocations: 1.042 MB / 0.6023 GB, free: 12.36 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5244, allocations: 0 / 0.6023 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07084/0.5953, allocations: 32 MB / 0.6336 GB, free: 12.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.834/9.429, allocations: 10.34 kB / 0.6336 GB, free: 12.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1)