Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009518/0.0009517, allocations: 97.91 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.001101, allocations: 182.3 kB / 17.89 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 241.9 MB, free: 14.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1878/0.1878, allocations: 44.23 MB / 337.2 MB, free: 2.559 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002814, allocations: 8 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 61.92 MB / 471.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.0337/0.1468, allocations: 34.12 MB / 0.4939 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01565/0.1625, allocations: 7.2 MB / 0.5009 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006109/0.1686, allocations: 151.7 kB / 0.5011 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005121/0.1738, allocations: 1.501 MB / 0.5025 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2224/0.3963, allocations: 4.396 MB / 0.5068 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.3976, allocations: 248.8 kB / 0.5071 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003944/0.4016, allocations: 2.626 MB / 0.5096 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003997/0.4056, allocations: 2.966 MB / 0.5125 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.4067, allocations: 0.6863 MB / 0.5132 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.408, allocations: 1.028 MB / 0.5142 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.4082, allocations: 90.84 kB / 0.5143 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009458/0.4092, allocations: 0.5334 MB / 0.5148 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.4102, allocations: 0.981 MB / 0.5158 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.4107, allocations: 0.5278 MB / 0.5163 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.4136, allocations: 3.42 MB / 0.5196 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4136, allocations: 0 / 0.5196 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4136, allocations: 0 / 0.5196 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.545e-05/0.4137, allocations: 0 / 0.5196 GB, free: 10.66 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.003799/0.4175, allocations: 2.451 MB / 0.522 GB, free: 9.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4175, allocations: 9.25 kB / 0.522 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00054/0.4181, allocations: 497.1 kB / 0.5225 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004423/0.4225, allocations: 1.632 MB / 0.5241 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/0.4246, allocations: 1.319 MB / 0.5254 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.11e-05/0.4247, allocations: 156.9 kB / 0.5255 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.425, allocations: 191.2 kB / 0.5257 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008905/0.4339, allocations: 6.416 MB / 0.532 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.089e-05/0.434, allocations: 14.53 kB / 0.532 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002565/0.4342, allocations: 88.77 kB / 0.5321 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001947/0.4362, allocations: 1.406 MB / 0.5335 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009822/0.446, allocations: 5.461 MB / 0.5388 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02528/0.4714, allocations: 20.59 MB / 0.5589 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003983/0.4754, allocations: 2 MB / 0.5609 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009492/0.4764, allocations: 0.6971 MB / 0.5615 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006446/0.4828, allocations: 3.64 MB / 0.5651 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.4829, allocations: 39 kB / 0.5651 GB, free: 14.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 4.348e-06/0.4829, allocations: 0 / 0.5651 GB, free: 14.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005308/0.4882, allocations: 1.968 MB / 0.567 GB, free: 12.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.4883, allocations: 63.83 kB / 0.5671 GB, free: 12.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.4912, allocations: 1.95 MB / 0.569 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.323e-05/0.4913, allocations: 33.7 kB / 0.569 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.4926, allocations: 1.881 MB / 0.5709 GB, free: 8.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.4929, allocations: 318.1 kB / 0.5712 GB, free: 8.352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.493, allocations: 59.52 kB / 0.5712 GB, free: 8.297 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002946/0.4933, allocations: 497.2 kB / 0.5717 GB, free: 7.801 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.4946, allocations: 0.8842 MB / 0.5726 GB, free: 6.914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002691/0.4973, allocations: 2.759 MB / 0.5753 GB, free: 3.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002256/0.4996, allocations: 1.562 MB / 0.5768 GB, free: 1.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.171e-05/0.4997, allocations: 20 kB / 0.5768 GB, free: 1.727 MB / 414.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006313/0.506, allocations: 3.518 MB / 0.5803 GB, free: 14.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.399e-05/0.5061, allocations: 40.03 kB / 0.5803 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.497e-05/0.5062, allocations: 64 kB / 0.5804 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.5063, allocations: 100 kB / 0.5804 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00189/0.5082, allocations: 0.6628 MB / 0.5811 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001018/0.5084, allocations: 127.5 kB / 0.5812 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002076/0.5104, allocations: 417 kB / 0.5816 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002496/0.5107, allocations: 199.8 kB / 0.5818 GB, free: 12.89 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.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 (365): * Single equations (assignments): 360 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002875/0.5136, allocations: 1.377 MB / 0.5832 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/0.5139, allocations: 157.9 kB / 0.5833 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004184/0.5143, allocations: 197.2 kB / 0.5835 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/0.5144, allocations: 8 kB / 0.5835 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.5144, allocations: 0 / 0.5835 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.5144, allocations: 7.875 kB / 0.5835 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007145/0.5216, allocations: 4.092 MB / 0.5875 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/0.5216, allocations: 12 kB / 0.5875 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/0.522, allocations: 103.8 kB / 0.5876 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.698e-05/0.5221, allocations: 14.5 kB / 0.5876 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.5221, allocations: 20 kB / 0.5876 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-05/0.5221, allocations: 15.94 kB / 0.5877 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.5221, allocations: 11.98 kB / 0.5877 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.5238, allocations: 1.263 MB / 0.5889 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.5244, allocations: 258.7 kB / 0.5892 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.5245, allocations: 22.72 kB / 0.5892 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.525, allocations: 27.89 kB / 0.5892 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.5251, allocations: 63.73 kB / 0.5893 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.807e-05/0.5251, allocations: 31.98 kB / 0.5893 GB, free: 4.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001915/0.5271, allocations: 1.271 MB / 0.5905 GB, free: 3.703 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5271, allocations: 0 / 0.5905 GB, free: 3.703 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002873/0.5299, allocations: 0.7036 MB / 0.5912 GB, free: 3 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00186/0.5318, allocations: 1.862 MB / 0.593 GB, free: 1.027 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003532/0.5354, allocations: 2.015 MB / 0.595 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.5354, allocations: 4 kB / 0.595 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005616/0.536, allocations: 463.9 kB / 0.5955 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.5374, allocations: 238.2 kB / 0.5957 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02551/0.563, allocations: 15.47 MB / 0.6108 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002891/0.5659, allocations: 2.327 MB / 0.6131 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002395/0.5683, allocations: 0.9639 MB / 0.614 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/0.5699, allocations: 1.077 MB / 0.615 GB, free: 8.938 MB / 462.1 MB Notification: Performance of SimCode: time 3.397e-06/0.5699, allocations: 0 / 0.615 GB, free: 8.938 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2809/0.8508, allocations: 36.67 MB / 0.6509 GB, free: 4.539 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.851, allocations: 184.5 kB / 0.651 GB, free: 4.301 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.812, allocations: 0 / 0.651 GB, free: 4.301 MB / 494.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat