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.0009081/0.0009082, allocations: 96.75 kB / 17.35 MB, free: 6.344 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.0009994/0.0009996, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.257/1.257, allocations: 223.3 MB / 242.3 MB, free: 14.47 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.1765/0.1765, allocations: 44.24 MB / 337.7 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.000281, allocations: 8 kB / 410.4 MB, free: 27.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09879, allocations: 61.92 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03471/0.1335, allocations: 36.64 MB / 0.4971 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.1487, allocations: 7.526 MB / 0.5044 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005614/0.1543, allocations: 155.7 kB / 0.5046 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008741/0.1552, allocations: 290.6 kB / 0.5048 GB, free: 448 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2017/0.3569, allocations: 1.067 MB / 0.5059 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007656/0.3577, allocations: 267.7 kB / 0.5061 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004873/0.3626, allocations: 3.405 MB / 0.5095 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004951/0.3676, allocations: 3.345 MB / 0.5127 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001258/0.3689, allocations: 0.6486 MB / 0.5134 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.3707, allocations: 1.06 MB / 0.5144 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003245/0.3711, allocations: 87.91 kB / 0.5145 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.3728, allocations: 0.6318 MB / 0.5151 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.3741, allocations: 1.022 MB / 0.5161 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001089/0.3752, allocations: 1.219 MB / 0.5173 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003649/0.3788, allocations: 4.126 MB / 0.5213 GB, free: 8.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3788, allocations: 1.281 kB / 0.5213 GB, free: 8.574 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3788, allocations: 0 / 0.5213 GB, free: 8.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.549e-05/0.3789, allocations: 0 / 0.5213 GB, free: 8.574 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.003857/0.3828, allocations: 2.424 MB / 0.5237 GB, free: 6.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3828, allocations: 9.188 kB / 0.5237 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005811/0.3834, allocations: 494.1 kB / 0.5242 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005034/0.3885, allocations: 1.632 MB / 0.5258 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00211/0.3906, allocations: 1.34 MB / 0.5271 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.048e-05/0.3907, allocations: 146 kB / 0.5272 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002898/0.391, allocations: 191.2 kB / 0.5274 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007516/0.3985, allocations: 6.437 MB / 0.5337 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.037e-05/0.3986, allocations: 13.25 kB / 0.5337 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002237/0.3988, allocations: 91.25 kB / 0.5338 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001845/0.4006, allocations: 1.406 MB / 0.5351 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007605/0.4083, allocations: 5.498 MB / 0.5405 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02617/0.4344, allocations: 20.61 MB / 0.5606 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004127/0.4386, allocations: 1.998 MB / 0.5626 GB, free: 8.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009794/0.4396, allocations: 0.6978 MB / 0.5633 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005915/0.4456, allocations: 3.644 MB / 0.5668 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.4456, allocations: 39 kB / 0.5669 GB, free: 3.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.556e-06/0.4456, allocations: 0 / 0.5669 GB, free: 3.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005117/0.4507, allocations: 1.981 MB / 0.5688 GB, free: 1.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.4508, allocations: 59.83 kB / 0.5689 GB, free: 1.523 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003051/0.4539, allocations: 1.962 MB / 0.5708 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/0.4539, allocations: 37.7 kB / 0.5708 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.4552, allocations: 1.877 MB / 0.5726 GB, free: 13.63 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/0.4556, allocations: 318.7 kB / 0.573 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004001/0.456, allocations: 276.2 kB / 0.5732 GB, free: 13.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4561, allocations: 357.9 kB / 0.5736 GB, free: 12.69 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.4575, allocations: 0.8895 MB / 0.5744 GB, free: 11.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002658/0.4601, allocations: 2.781 MB / 0.5771 GB, free: 8.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004105/0.4643, allocations: 3.999 MB / 0.581 GB, free: 3.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.721e-05/0.4643, allocations: 20 kB / 0.5811 GB, free: 3.434 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.0052/0.4695, allocations: 3.549 MB / 0.5845 GB, free: 292 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.4696, allocations: 32 kB / 0.5846 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-05/0.4697, allocations: 68.91 kB / 0.5846 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.592e-05/0.4698, allocations: 88 kB / 0.5847 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.4716, allocations: 0.6666 MB / 0.5854 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.916e-05/0.4717, allocations: 134.1 kB / 0.5855 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.4735, allocations: 419.5 kB / 0.5859 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/0.4737, allocations: 186.7 kB / 0.5861 GB, free: 14.8 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002035/0.4758, allocations: 1.371 MB / 0.5874 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002242/0.476, allocations: 165.8 kB / 0.5876 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003968/0.4764, allocations: 197.2 kB / 0.5878 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.4764, allocations: 12 kB / 0.5878 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4764, allocations: 0 / 0.5878 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4764, allocations: 3.984 kB / 0.5878 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006602/0.483, allocations: 4.093 MB / 0.5918 GB, free: 8.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.4831, allocations: 8 kB / 0.5918 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003952/0.4835, allocations: 104.1 kB / 0.5919 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.4835, allocations: 8 kB / 0.5919 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.4836, allocations: 16 kB / 0.5919 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.407e-05/0.4836, allocations: 18.33 kB / 0.5919 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.4836, allocations: 7.094 kB / 0.5919 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.4851, allocations: 1.275 MB / 0.5932 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.4856, allocations: 270.5 kB / 0.5934 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/0.4858, allocations: 12 kB / 0.5934 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.4864, allocations: 27.98 kB / 0.5935 GB, free: 7.074 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.782e-05/0.4865, allocations: 64.88 kB / 0.5935 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/0.4866, allocations: 28 kB / 0.5935 GB, free: 6.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00195/0.4885, allocations: 1.279 MB / 0.5948 GB, free: 5.719 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4885, allocations: 0 / 0.5948 GB, free: 5.719 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002601/0.4911, allocations: 0.7066 MB / 0.5955 GB, free: 5.012 MB / 446.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.001891/0.493, allocations: 1.876 MB / 0.5973 GB, free: 3.043 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.496, allocations: 2.033 MB / 0.5993 GB, free: 1.211 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.496, allocations: 1.812 kB / 0.5993 GB, free: 1.211 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005286/0.4965, allocations: 463.8 kB / 0.5997 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/0.4992, allocations: 246.1 kB / 0.6 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03308/0.5323, allocations: 23.67 MB / 0.6231 GB, free: 5.961 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003116/0.5354, allocations: 2.319 MB / 0.6254 GB, free: 3.609 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002415/0.5379, allocations: 0.9601 MB / 0.6263 GB, free: 2.645 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.5396, allocations: 1.077 MB / 0.6274 GB, free: 1.57 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5396, allocations: 0 / 0.6274 GB, free: 1.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05118/0.5908, allocations: 31.63 MB / 0.6582 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.5911, allocations: 194.9 kB / 0.6584 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.384/2.976, allocations: 3.625 kB / 0.6584 GB, free: 1.891 MB / 0.4981 GB (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/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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches