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.001154/0.001154, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001319/0.001319, allocations: 194 kB / 18.12 MB, free: 5.383 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.363/1.363, allocations: 222.9 MB / 241.8 MB, free: 13.64 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.2549/0.2549, allocations: 44.18 MB / 336.1 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 71.48 kB / 407.8 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1161, allocations: 60.83 MB / 468.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03617/0.1523, allocations: 37.7 MB / 0.4945 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01799/0.1703, allocations: 7.572 MB / 0.5019 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00892/0.1793, allocations: 151.7 kB / 0.502 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.249/0.4283, allocations: 1.992 MB / 0.5039 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003427/0.4318, allocations: 1.064 MB / 0.505 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000952/0.4328, allocations: 262.4 kB / 0.5052 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005688/0.4385, allocations: 3.403 MB / 0.5086 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004383/0.4429, allocations: 2.316 MB / 0.5108 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002143/0.4451, allocations: 0.7984 MB / 0.5116 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002974/0.4481, allocations: 1.244 MB / 0.5128 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001259/0.4494, allocations: 150.4 kB / 0.513 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002473/0.4519, allocations: 0.6973 MB / 0.5136 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.454, allocations: 1.113 MB / 0.5147 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003402/0.4574, allocations: 1.309 MB / 0.516 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007271/0.4647, allocations: 4.25 MB / 0.5202 GB, free: 8.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.4648, allocations: 5.375 kB / 0.5202 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4648, allocations: 0 / 0.5202 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002247/0.465, allocations: 0 / 0.5202 GB, free: 8.91 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.0102/0.4752, allocations: 2.94 MB / 0.523 GB, free: 7.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4753, allocations: 9.406 kB / 0.523 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00177/0.4771, allocations: 493.7 kB / 0.5235 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005336/0.4824, allocations: 1.59 MB / 0.5251 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.4854, allocations: 1.338 MB / 0.5264 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.4855, allocations: 151.8 kB / 0.5265 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007684/0.4863, allocations: 200.9 kB / 0.5267 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.4976, allocations: 6.43 MB / 0.533 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/0.4977, allocations: 13.19 kB / 0.533 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002622/0.498, allocations: 88.73 kB / 0.5331 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001995/0.5, allocations: 1.413 MB / 0.5345 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009917/0.5099, allocations: 5.476 MB / 0.5398 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.542, allocations: 20.6 MB / 0.5599 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004434/0.5465, allocations: 2.013 MB / 0.5619 GB, free: 6.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.5476, allocations: 0.6973 MB / 0.5626 GB, free: 5.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007017/0.5546, allocations: 3.655 MB / 0.5661 GB, free: 2.016 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.5547, allocations: 35 kB / 0.5662 GB, free: 1.973 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.277e-06/0.5547, allocations: 0 / 0.5662 GB, free: 1.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005655/0.5603, allocations: 1.983 MB / 0.5681 GB, free: 15.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.5604, allocations: 55.84 kB / 0.5682 GB, free: 15.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004054/0.5645, allocations: 1.962 MB / 0.5701 GB, free: 13.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.5646, allocations: 33.7 kB / 0.5701 GB, free: 13.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.5664, allocations: 1.884 MB / 0.572 GB, free: 12.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005075/0.5669, allocations: 314.5 kB / 0.5723 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001558/0.5685, allocations: 0.6215 MB / 0.5729 GB, free: 11.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.5687, allocations: 357.9 kB / 0.5732 GB, free: 10.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.5705, allocations: 0.8959 MB / 0.5741 GB, free: 9.836 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003239/0.5738, allocations: 2.769 MB / 0.5768 GB, free: 6.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004969/0.5788, allocations: 3.995 MB / 0.5807 GB, free: 1.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.169e-05/0.5789, allocations: 20 kB / 0.5807 GB, free: 1.484 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005996/0.5849, allocations: 3.559 MB / 0.5842 GB, free: 14.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.912e-05/0.5849, allocations: 35.47 kB / 0.5842 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.5851, allocations: 68 kB / 0.5843 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000104/0.5852, allocations: 88 kB / 0.5844 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/0.5872, allocations: 0.6611 MB / 0.585 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001346/0.5873, allocations: 129 kB / 0.5851 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/0.5895, allocations: 423.8 kB / 0.5855 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/0.5898, allocations: 188 kB / 0.5857 GB, free: 12.84 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.0026/0.5924, allocations: 1.367 MB / 0.587 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003127/0.5928, allocations: 161.9 kB / 0.5872 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004139/0.5932, allocations: 197.2 kB / 0.5874 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.5932, allocations: 12 kB / 0.5874 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.5932, allocations: 4 kB / 0.5874 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.5932, allocations: 0 / 0.5874 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008164/0.6014, allocations: 4.094 MB / 0.5914 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.6014, allocations: 12.78 kB / 0.5914 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.6019, allocations: 107.6 kB / 0.5915 GB, free: 6.855 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-05/0.6019, allocations: 12 kB / 0.5915 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.452e-05/0.602, allocations: 22.72 kB / 0.5915 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.13e-05/0.602, allocations: 14.72 kB / 0.5916 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/0.602, allocations: 10.52 kB / 0.5916 GB, free: 6.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.6036, allocations: 1.259 MB / 0.5928 GB, free: 5.449 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.6041, allocations: 250.7 kB / 0.593 GB, free: 5.184 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003392/0.6044, allocations: 16 kB / 0.5931 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006373/0.6051, allocations: 31.97 kB / 0.5931 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.6052, allocations: 61.27 kB / 0.5931 GB, free: 5.082 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.737e-05/0.6053, allocations: 35.28 kB / 0.5932 GB, free: 5.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002191/0.6074, allocations: 1.283 MB / 0.5944 GB, free: 3.777 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6075, allocations: 4 kB / 0.5944 GB, free: 3.773 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003002/0.6105, allocations: 0.7153 MB / 0.5951 GB, free: 3.055 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.002068/0.6125, allocations: 1.857 MB / 0.5969 GB, free: 1.105 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003217/0.6158, allocations: 2.043 MB / 0.5989 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.6158, allocations: 4.062 kB / 0.5989 GB, free: 15.26 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005585/0.6164, allocations: 461.6 kB / 0.5994 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.618, allocations: 239.8 kB / 0.5996 GB, free: 14.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03949/0.6575, allocations: 23.64 MB / 0.6227 GB, free: 4.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003895/0.6615, allocations: 2.316 MB / 0.625 GB, free: 1.738 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002535/0.664, allocations: 0.9716 MB / 0.6259 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/0.666, allocations: 1.076 MB / 0.627 GB, free: 15.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/0.666, allocations: 0 / 0.627 GB, free: 15.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05618/0.7222, allocations: 31.89 MB / 0.6581 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.7224, allocations: 196.8 kB / 0.6583 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/3.237, allocations: 0 / 0.6583 GB, free: 15.73 MB / 0.5137 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