Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.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.CutForce2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForce2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForce2",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.001381/0.001381, allocations: 106.5 kB / 17.2 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.001733/0.001733, 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.383/1.383, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2075/0.2075, allocations: 44.17 MB / 336.1 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 62.78 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1008, allocations: 60.83 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForce2): time 0.03313/0.134, allocations: 37.69 MB / 0.4945 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.1506, allocations: 7.572 MB / 0.5018 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00969/0.1603, allocations: 155.7 kB / 0.502 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2118/0.3721, allocations: 1.991 MB / 0.5039 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002842/0.375, allocations: 1.068 MB / 0.505 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000707/0.3757, allocations: 266.4 kB / 0.5052 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004356/0.3801, allocations: 3.4 MB / 0.5086 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003356/0.3835, allocations: 2.317 MB / 0.5108 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.3849, allocations: 0.8007 MB / 0.5116 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.3868, allocations: 1.242 MB / 0.5128 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004684/0.3873, allocations: 149.8 kB / 0.513 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.3887, allocations: 0.6979 MB / 0.5136 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.3897, allocations: 1.116 MB / 0.5147 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.3908, allocations: 1.307 MB / 0.516 GB, free: 9.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003986/0.3948, allocations: 4.255 MB / 0.5202 GB, free: 8.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3948, allocations: 1.312 kB / 0.5202 GB, free: 8.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3948, allocations: 0 / 0.5202 GB, free: 8.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.853e-05/0.3949, allocations: 0 / 0.5202 GB, free: 8.938 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.004973/0.3999, allocations: 2.946 MB / 0.523 GB, free: 7.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4, allocations: 9.906 kB / 0.523 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005483/0.4005, allocations: 496.8 kB / 0.5235 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004589/0.4051, allocations: 1.583 MB / 0.5251 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001947/0.4071, allocations: 1.348 MB / 0.5264 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.861e-05/0.4072, allocations: 143.3 kB / 0.5265 GB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002922/0.4075, allocations: 196.6 kB / 0.5267 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007618/0.4151, allocations: 6.431 MB / 0.533 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.047e-05/0.4152, allocations: 13.66 kB / 0.533 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.4154, allocations: 88.67 kB / 0.5331 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/0.4172, allocations: 1.402 MB / 0.5345 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008741/0.4259, allocations: 5.492 MB / 0.5398 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02721/0.4532, allocations: 20.56 MB / 0.5599 GB, free: 8.676 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004382/0.4576, allocations: 2.082 MB / 0.5619 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000983/0.4586, allocations: 0.6952 MB / 0.5626 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006387/0.465, allocations: 3.509 MB / 0.566 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.465, allocations: 39 kB / 0.5661 GB, free: 2.102 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.206e-06/0.465, allocations: 0 / 0.5661 GB, free: 2.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005477/0.4705, allocations: 1.986 MB / 0.568 GB, free: 116 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.4706, allocations: 55.84 kB / 0.5681 GB, free: 44 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003446/0.4741, allocations: 1.962 MB / 0.57 GB, free: 14.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.4741, allocations: 33.7 kB / 0.57 GB, free: 14.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.4756, allocations: 1.885 MB / 0.5719 GB, free: 12.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000302/0.4759, allocations: 308.6 kB / 0.5722 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009766/0.4769, allocations: 0.623 MB / 0.5728 GB, free: 11.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4771, allocations: 357.9 kB / 0.5731 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.4784, allocations: 0.8881 MB / 0.574 GB, free: 9.973 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/0.4812, allocations: 2.777 MB / 0.5767 GB, free: 6.289 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004459/0.4856, allocations: 3.991 MB / 0.5806 GB, free: 1.637 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.036e-05/0.4857, allocations: 20 kB / 0.5806 GB, free: 1.617 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.006379/0.4921, allocations: 3.552 MB / 0.5841 GB, free: 14.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.4922, allocations: 37.81 kB / 0.5841 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/0.4923, allocations: 68 kB / 0.5842 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001112/0.4924, allocations: 91.94 kB / 0.5843 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.4944, allocations: 0.6646 MB / 0.5849 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001142/0.4945, allocations: 131.5 kB / 0.585 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.4966, allocations: 427.8 kB / 0.5854 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002747/0.4969, allocations: 180 kB / 0.5856 GB, free: 12.98 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 (cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,WorldForce1.color[3],WorldForce1.color[2],WorldForce1.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],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[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.002458/0.4993, allocations: 1.377 MB / 0.587 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000394/0.4997, allocations: 157.9 kB / 0.5871 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004009/0.5001, allocations: 197.2 kB / 0.5873 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.5002, allocations: 15.94 kB / 0.5873 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.5002, allocations: 4 kB / 0.5873 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5002, allocations: 3.984 kB / 0.5873 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008285/0.5085, allocations: 4.137 MB / 0.5914 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.5085, allocations: 8 kB / 0.5914 GB, free: 7.039 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003947/0.5089, allocations: 100.7 kB / 0.5915 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/0.5089, allocations: 12 kB / 0.5915 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.001e-05/0.509, allocations: 16 kB / 0.5915 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.31e-05/0.509, allocations: 14.61 kB / 0.5915 GB, free: 6.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.509, allocations: 8 kB / 0.5915 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.5106, allocations: 1.246 MB / 0.5927 GB, free: 5.574 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004596/0.5111, allocations: 254.7 kB / 0.593 GB, free: 5.305 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.5113, allocations: 16 kB / 0.593 GB, free: 5.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005687/0.5119, allocations: 27.97 kB / 0.593 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.512, allocations: 53.14 kB / 0.5931 GB, free: 5.215 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.459e-05/0.5121, allocations: 30.42 kB / 0.5931 GB, free: 5.188 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002059/0.5142, allocations: 1.279 MB / 0.5943 GB, free: 3.918 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5142, allocations: 4 kB / 0.5943 GB, free: 3.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002742/0.5169, allocations: 0.7037 MB / 0.595 GB, free: 3.207 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (54): * Single equations (assignments): 51 * 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.002183/0.5191, allocations: 1.852 MB / 0.5968 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003376/0.5225, allocations: 2.037 MB / 0.5988 GB, free: 15.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.5225, allocations: 0 / 0.5988 GB, free: 15.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006875/0.5232, allocations: 454.5 kB / 0.5993 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.525, allocations: 238.7 kB / 0.5995 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03468/0.5597, allocations: 23.58 MB / 0.6225 GB, free: 4.367 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003159/0.5629, allocations: 2.319 MB / 0.6248 GB, free: 2.02 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002343/0.5653, allocations: 0.9638 MB / 0.6257 GB, free: 1.051 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/0.5668, allocations: 1.073 MB / 0.6268 GB, free: 15.97 MB / 494.1 MB Notification: Performance of SimCode: time 2.735e-06/0.5668, allocations: 4 kB / 0.6268 GB, free: 15.97 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05506/0.6218, allocations: 31.86 MB / 0.6579 GB, free: 288 kB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.6221, allocations: 191.5 kB / 0.6581 GB, free: 28 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.709/3.331, allocations: 3.938 kB / 0.6581 GB, free: 24 kB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForce2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutForce2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForce2/CutForce2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutForce2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches