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.001589/0.001589, allocations: 117.6 kB / 17.79 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.001655/0.001655, allocations: 199.9 kB / 18.74 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.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.41 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.2185/0.2185, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002301/0.002301, allocations: 79.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3075, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01113/0.3187, allocations: 9.517 MB / 0.5399 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006054/0.3248, allocations: 2.925 MB / 0.5427 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.3259, allocations: 52.72 kB / 0.5428 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003833/0.3298, allocations: 1.993 MB / 0.5447 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002871/0.3327, allocations: 1.115 MB / 0.5458 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007889/0.3335, allocations: 290.4 kB / 0.5461 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003418/0.3369, allocations: 2.325 MB / 0.5484 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002827/0.3398, allocations: 2.307 MB / 0.5506 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001369/0.3412, allocations: 0.8762 MB / 0.5515 GB, free: 12.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.3428, allocations: 1.156 MB / 0.5526 GB, free: 11.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004023/0.3432, allocations: 192 kB / 0.5528 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.3447, allocations: 0.6982 MB / 0.5535 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001159/0.3458, allocations: 1.103 MB / 0.5546 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001486/0.3473, allocations: 1.305 MB / 0.5558 GB, free: 7.758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005488/0.3528, allocations: 4.331 MB / 0.5601 GB, free: 3.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3529, allocations: 0 / 0.5601 GB, free: 3.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3529, allocations: 0 / 0.5601 GB, free: 3.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.353, allocations: 4 kB / 0.5601 GB, free: 3.406 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.005513/0.3585, allocations: 2.934 MB / 0.5629 GB, free: 420 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3586, allocations: 11.97 kB / 0.5629 GB, free: 408 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007797/0.3594, allocations: 487.1 kB / 0.5634 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005235/0.3646, allocations: 1.578 MB / 0.565 GB, free: 14.33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.3673, allocations: 1.336 MB / 0.5663 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.3675, allocations: 151.8 kB / 0.5664 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004596/0.368, allocations: 183.9 kB / 0.5666 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01028/0.3783, allocations: 6.242 MB / 0.5727 GB, free: 6.105 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/0.3783, allocations: 15.86 kB / 0.5727 GB, free: 6.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002926/0.3786, allocations: 91.89 kB / 0.5728 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002216/0.3809, allocations: 1.344 MB / 0.5741 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.391, allocations: 5.334 MB / 0.5793 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02665/0.4177, allocations: 20.07 MB / 0.5989 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00425/0.422, allocations: 2.006 MB / 0.6009 GB, free: 8.527 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.423, allocations: 0.6939 MB / 0.6015 GB, free: 7.832 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006347/0.4294, allocations: 3.628 MB / 0.6051 GB, free: 4.059 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.4294, allocations: 39 kB / 0.6051 GB, free: 4.012 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.376e-06/0.4294, allocations: 0 / 0.6051 GB, free: 4.012 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005383/0.4348, allocations: 1.99 MB / 0.6071 GB, free: 2.012 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.4349, allocations: 63.83 kB / 0.6071 GB, free: 1.938 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/0.4377, allocations: 1.946 MB / 0.609 GB, free: 15.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.4378, allocations: 33.7 kB / 0.6091 GB, free: 15.95 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.4393, allocations: 1.907 MB / 0.6109 GB, free: 14.02 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003545/0.4396, allocations: 333.5 kB / 0.6112 GB, free: 13.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008385/0.4405, allocations: 0.6234 MB / 0.6118 GB, free: 13.06 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.4407, allocations: 353.9 kB / 0.6122 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.442, allocations: 0.8842 MB / 0.613 GB, free: 11.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002945/0.445, allocations: 2.755 MB / 0.6157 GB, free: 8.133 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004698/0.4497, allocations: 3.97 MB / 0.6196 GB, free: 3.238 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.718e-05/0.4498, allocations: 16 kB / 0.6196 GB, free: 3.223 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005842/0.4556, allocations: 3.531 MB / 0.6231 GB, free: 15.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.306e-05/0.4557, allocations: 32 kB / 0.6231 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-05/0.4558, allocations: 64 kB / 0.6232 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.476e-05/0.4559, allocations: 91.94 kB / 0.6233 GB, free: 15.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.4578, allocations: 0.6511 MB / 0.6239 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001206/0.4579, allocations: 139.4 kB / 0.624 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/0.4597, allocations: 429.2 kB / 0.6244 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.46, allocations: 184 kB / 0.6246 GB, free: 14.11 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.001966/0.462, allocations: 1.342 MB / 0.6259 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.4623, allocations: 166.8 kB / 0.6261 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003831/0.4626, allocations: 200.9 kB / 0.6263 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.351e-05/0.4627, allocations: 11.94 kB / 0.6263 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4627, allocations: 7.938 kB / 0.6263 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.4627, allocations: 3.984 kB / 0.6263 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006396/0.4691, allocations: 4.013 MB / 0.6302 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.4692, allocations: 8.844 kB / 0.6302 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004166/0.4696, allocations: 103.8 kB / 0.6303 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.4696, allocations: 16 kB / 0.6303 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.4697, allocations: 20 kB / 0.6304 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.274e-05/0.4697, allocations: 15.92 kB / 0.6304 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/0.4697, allocations: 15.92 kB / 0.6304 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00162/0.4713, allocations: 1.275 MB / 0.6316 GB, free: 6.652 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003668/0.4717, allocations: 251.8 kB / 0.6319 GB, free: 6.387 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.4719, allocations: 16 kB / 0.6319 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.4724, allocations: 35.92 kB / 0.6319 GB, free: 6.336 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.692e-05/0.4725, allocations: 55.77 kB / 0.632 GB, free: 6.281 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.563e-05/0.4725, allocations: 32 kB / 0.632 GB, free: 6.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001885/0.4744, allocations: 1.271 MB / 0.6332 GB, free: 4.988 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4744, allocations: 4 kB / 0.6332 GB, free: 4.984 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002394/0.4768, allocations: 0.6929 MB / 0.6339 GB, free: 4.289 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.002085/0.4789, allocations: 1.869 MB / 0.6357 GB, free: 2.309 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003201/0.4822, allocations: 2.046 MB / 0.6377 GB, free: 288 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.4822, allocations: 4.062 kB / 0.6377 GB, free: 284 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.4828, allocations: 463.8 kB / 0.6382 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.4841, allocations: 245.6 kB / 0.6384 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02948/0.5136, allocations: 20.94 MB / 0.6589 GB, free: 8.102 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002606/0.5162, allocations: 2.275 MB / 0.6611 GB, free: 5.797 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002094/0.5183, allocations: 0.9597 MB / 0.662 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.5197, allocations: 1.038 MB / 0.663 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of SimCode: time 6.11e-07/0.5197, allocations: 4 kB / 0.6631 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06648/0.5862, allocations: 32.61 MB / 0.6949 GB, free: 3.324 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.52, allocations: 14.75 kB / 0.6949 GB, free: 3.32 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2_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_CutTorque2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1)