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.001398/0.001398, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 208.6 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.425/1.425, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2251/0.2251, 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.00385/0.00385, allocations: 77.56 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1325, allocations: 62.45 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01278/0.1453, allocations: 9.528 MB / 489.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006169/0.1515, allocations: 2.924 MB / 492.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.1527, allocations: 47.94 kB / 492.7 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003968/0.1567, allocations: 1.998 MB / 494.7 MB, free: 6.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003218/0.1599, allocations: 1.109 MB / 495.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.1608, allocations: 291.4 kB / 496.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003386/0.1642, allocations: 2.325 MB / 498.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00302/0.1672, allocations: 2.305 MB / 0.489 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.1688, allocations: 0.88 MB / 0.4898 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001622/0.1704, allocations: 1.149 MB / 0.491 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003974/0.1708, allocations: 196 kB / 0.4912 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.1723, allocations: 0.7021 MB / 0.4918 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.1735, allocations: 1.107 MB / 0.4929 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.1751, allocations: 1.305 MB / 0.4942 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00497/0.1801, allocations: 4.159 MB / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1802, allocations: 0 / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1802, allocations: 0 / 0.4983 GB, free: 7.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.251e-05/0.1803, allocations: 0 / 0.4983 GB, free: 7.008 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.00565/0.1859, allocations: 2.857 MB / 0.501 GB, free: 4.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.186, allocations: 11.97 kB / 0.5011 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008426/0.1869, allocations: 499 kB / 0.5015 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005806/0.1927, allocations: 1.553 MB / 0.5031 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003432/0.1962, allocations: 1.324 MB / 0.5043 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1964, allocations: 147.8 kB / 0.5045 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000523/0.1969, allocations: 183.9 kB / 0.5047 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2353/0.4322, allocations: 6.242 MB / 0.5108 GB, free: 37.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.938e-05/0.4323, allocations: 13.38 kB / 0.5108 GB, free: 37.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/0.4326, allocations: 87.69 kB / 0.5109 GB, free: 37.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001963/0.4345, allocations: 1.339 MB / 0.5122 GB, free: 37.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.4446, allocations: 5.332 MB / 0.5174 GB, free: 35.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02336/0.468, allocations: 20.17 MB / 0.5371 GB, free: 20.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003474/0.4715, allocations: 2.014 MB / 0.539 GB, free: 18.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/0.4722, allocations: 0.6907 MB / 0.5397 GB, free: 18.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005031/0.4773, allocations: 3.613 MB / 0.5432 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.4773, allocations: 39 kB / 0.5433 GB, free: 14.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.346e-06/0.4773, allocations: 0 / 0.5433 GB, free: 14.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004724/0.4821, allocations: 1.985 MB / 0.5452 GB, free: 12.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.4821, allocations: 55.84 kB / 0.5453 GB, free: 12.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.4844, allocations: 1.933 MB / 0.5471 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.537e-05/0.4844, allocations: 41.69 kB / 0.5472 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007145/0.4852, allocations: 1.829 MB / 0.549 GB, free: 8.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.4854, allocations: 320 kB / 0.5493 GB, free: 8.051 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005944/0.486, allocations: 0.6112 MB / 0.5499 GB, free: 7.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.857e-05/0.4861, allocations: 365.9 kB / 0.5502 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009925/0.4871, allocations: 0.8881 MB / 0.5511 GB, free: 6.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.489, allocations: 2.747 MB / 0.5538 GB, free: 2.496 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004151/0.4932, allocations: 3.965 MB / 0.5576 GB, free: 13.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.322e-05/0.4932, allocations: 20 kB / 0.5577 GB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.005619/0.4988, allocations: 3.523 MB / 0.5611 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.4989, allocations: 32 kB / 0.5611 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.654e-05/0.499, allocations: 76.78 kB / 0.5612 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.401e-05/0.4991, allocations: 91.94 kB / 0.5613 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.5009, allocations: 0.655 MB / 0.5619 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001103/0.501, allocations: 127.5 kB / 0.5621 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.5028, allocations: 419.5 kB / 0.5625 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002568/0.503, allocations: 188 kB / 0.5626 GB, free: 8.477 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.002208/0.5053, allocations: 1.338 MB / 0.5639 GB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/0.5055, allocations: 153.9 kB / 0.5641 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000359/0.5059, allocations: 200.8 kB / 0.5643 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/0.5059, allocations: 8 kB / 0.5643 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.5059, allocations: 0 / 0.5643 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.506, allocations: 4 kB / 0.5643 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006542/0.5125, allocations: 4.033 MB / 0.5682 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.5125, allocations: 8 kB / 0.5682 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.513, allocations: 99.83 kB / 0.5683 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.675e-05/0.513, allocations: 11.98 kB / 0.5683 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.735e-05/0.513, allocations: 23.98 kB / 0.5684 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.5131, allocations: 15.88 kB / 0.5684 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.5131, allocations: 8 kB / 0.5684 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.5148, allocations: 1.253 MB / 0.5696 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004556/0.5152, allocations: 250.8 kB / 0.5699 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.5154, allocations: 27.97 kB / 0.5699 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.5159, allocations: 23.98 kB / 0.5699 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.516, allocations: 59.75 kB / 0.57 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.164e-05/0.5161, allocations: 28 kB / 0.57 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002007/0.5181, allocations: 1.275 MB / 0.5712 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5181, allocations: 0 / 0.5712 GB, free: 15.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002648/0.5207, allocations: 0.6753 MB / 0.5719 GB, free: 14.72 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.002289/0.523, allocations: 1.877 MB / 0.5737 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003796/0.5268, allocations: 2.249 MB / 0.5759 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.5269, allocations: 0 / 0.5759 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006463/0.5275, allocations: 466.9 kB / 0.5764 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.5291, allocations: 247 kB / 0.5766 GB, free: 9.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0357/0.5648, allocations: 22.08 MB / 0.5982 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003136/0.568, allocations: 2.271 MB / 0.6004 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002355/0.5703, allocations: 0.9597 MB / 0.6013 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.5719, allocations: 1.042 MB / 0.6023 GB, free: 12.45 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.572, allocations: 3.938 kB / 0.6023 GB, free: 12.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07697/0.6489, allocations: 32 MB / 0.6336 GB, free: 12.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.906/9.555, allocations: 14.22 kB / 0.6336 GB, free: 12.58 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 & 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)