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.001265/0.001265, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.46 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.2341/0.2341, allocations: 46.12 MB / 344.4 MB, free: 11.47 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.002297/0.002297, allocations: 83.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3512, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.01216/0.3634, allocations: 9.526 MB / 0.5399 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007195/0.3707, allocations: 2.921 MB / 0.5428 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.3727, allocations: 53.25 kB / 0.5428 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00449/0.3773, allocations: 2.001 MB / 0.5448 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003363/0.3807, allocations: 1.103 MB / 0.5458 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009785/0.3817, allocations: 285.6 kB / 0.5461 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004144/0.3858, allocations: 2.331 MB / 0.5484 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003467/0.3894, allocations: 2.303 MB / 0.5506 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.3911, allocations: 0.8801 MB / 0.5515 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.3931, allocations: 1.153 MB / 0.5526 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006188/0.3938, allocations: 192 kB / 0.5528 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001621/0.3954, allocations: 0.6982 MB / 0.5535 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.3969, allocations: 1.099 MB / 0.5546 GB, free: 9.125 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001846/0.3988, allocations: 1.308 MB / 0.5558 GB, free: 7.809 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0059/0.4047, allocations: 4.335 MB / 0.5601 GB, free: 3.457 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.4047, allocations: 0 / 0.5601 GB, free: 3.457 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4048, allocations: 0 / 0.5601 GB, free: 3.457 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001581/0.4049, allocations: 0 / 0.5601 GB, free: 3.457 MB / 414.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.006526/0.4115, allocations: 2.934 MB / 0.5629 GB, free: 472 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4115, allocations: 8.031 kB / 0.5629 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/0.4126, allocations: 491 kB / 0.5634 GB, free: 15.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005704/0.4183, allocations: 1.571 MB / 0.5649 GB, free: 14.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/0.4215, allocations: 1.34 MB / 0.5663 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.4217, allocations: 147.8 kB / 0.5664 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006611/0.4224, allocations: 191.9 kB / 0.5666 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01126/0.4337, allocations: 6.246 MB / 0.5727 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.117e-05/0.4338, allocations: 11.88 kB / 0.5727 GB, free: 6.141 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003073/0.4341, allocations: 87.91 kB / 0.5728 GB, free: 6.055 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002338/0.4364, allocations: 1.344 MB / 0.5741 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.4477, allocations: 5.331 MB / 0.5793 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03103/0.4788, allocations: 20.08 MB / 0.5989 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004492/0.4833, allocations: 2.01 MB / 0.6009 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.4845, allocations: 0.694 MB / 0.6015 GB, free: 7.875 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007127/0.4917, allocations: 3.617 MB / 0.6051 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.4918, allocations: 42.94 kB / 0.6051 GB, free: 4.062 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.017e-06/0.4918, allocations: 0 / 0.6051 GB, free: 4.062 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005848/0.4976, allocations: 1.994 MB / 0.6071 GB, free: 2.059 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.4977, allocations: 59.84 kB / 0.6071 GB, free: 1.988 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.5007, allocations: 1.942 MB / 0.609 GB, free: 44 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.5009, allocations: 37.69 kB / 0.6091 GB, free: 0 / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/0.5025, allocations: 1.907 MB / 0.6109 GB, free: 14.07 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/0.503, allocations: 329.5 kB / 0.6112 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009385/0.5039, allocations: 0.6195 MB / 0.6118 GB, free: 13.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.5041, allocations: 357.9 kB / 0.6122 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.5056, allocations: 0.8881 MB / 0.613 GB, free: 11.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003075/0.5086, allocations: 2.747 MB / 0.6157 GB, free: 8.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004958/0.5136, allocations: 3.969 MB / 0.6196 GB, free: 3.301 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.656e-05/0.5137, allocations: 20 kB / 0.6196 GB, free: 3.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00643/0.5202, allocations: 3.535 MB / 0.6231 GB, free: 15.73 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/0.5203, allocations: 36 kB / 0.6231 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.874e-05/0.5204, allocations: 68.83 kB / 0.6232 GB, free: 15.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.816e-05/0.5205, allocations: 91.94 kB / 0.6233 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/0.5225, allocations: 0.655 MB / 0.6239 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001315/0.5227, allocations: 135.4 kB / 0.624 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/0.5248, allocations: 428.8 kB / 0.6244 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004033/0.5252, allocations: 184 kB / 0.6246 GB, free: 14.15 MB / 494.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.002313/0.5275, allocations: 1.346 MB / 0.6259 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002875/0.5278, allocations: 162.9 kB / 0.6261 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.5283, allocations: 196.9 kB / 0.6263 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.942e-05/0.5283, allocations: 15.94 kB / 0.6263 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.5283, allocations: 0 / 0.6263 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.5283, allocations: 7.922 kB / 0.6263 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00713/0.5355, allocations: 4.025 MB / 0.6302 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.5355, allocations: 8 kB / 0.6302 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.5359, allocations: 103.8 kB / 0.6303 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.536, allocations: 12 kB / 0.6303 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.736e-05/0.536, allocations: 16 kB / 0.6304 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.521e-05/0.536, allocations: 19.92 kB / 0.6304 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/0.5361, allocations: 8 kB / 0.6304 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.5378, allocations: 1.271 MB / 0.6316 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.5383, allocations: 255.8 kB / 0.6319 GB, free: 6.438 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.5385, allocations: 16 kB / 0.6319 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004809/0.5389, allocations: 35.91 kB / 0.6319 GB, free: 6.387 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5391, allocations: 59.77 kB / 0.632 GB, free: 6.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.5391, allocations: 32 kB / 0.632 GB, free: 6.297 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002112/0.5412, allocations: 1.267 MB / 0.6332 GB, free: 5.039 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.5413, allocations: 0 / 0.6332 GB, free: 5.039 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002605/0.5439, allocations: 0.689 MB / 0.6339 GB, free: 4.348 MB / 494.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.002283/0.5462, allocations: 1.873 MB / 0.6357 GB, free: 2.363 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003453/0.5497, allocations: 2.053 MB / 0.6377 GB, free: 336 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.5497, allocations: 0 / 0.6377 GB, free: 336 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006694/0.5504, allocations: 458.7 kB / 0.6382 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.5518, allocations: 245.2 kB / 0.6384 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03259/0.5844, allocations: 20.95 MB / 0.6589 GB, free: 8.148 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002941/0.5874, allocations: 2.275 MB / 0.6611 GB, free: 5.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002304/0.5897, allocations: 0.9597 MB / 0.662 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/0.5914, allocations: 1.042 MB / 0.6631 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of SimCode: time 1.823e-06/0.5914, allocations: 0 / 0.6631 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0691/0.6605, allocations: 32.59 MB / 0.6949 GB, free: 3.383 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.87, allocations: 22.36 kB / 0.6949 GB, free: 3.371 MB / 0.545 GB (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)