Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",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.001261/0.001261, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.001415/0.001415, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2119/0.2119, allocations: 44.2 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.91 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3467, allocations: 60.81 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01009/0.3569, allocations: 9.03 MB / 0.5272 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009618/0.3665, allocations: 3.545 MB / 0.5307 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002193/0.3688, allocations: 48.31 kB / 0.5307 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003841/0.3727, allocations: 1.68 MB / 0.5324 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.3775, allocations: 1.626 MB / 0.534 GB, free: 8.219 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.3791, allocations: 0.5555 MB / 0.5345 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005773/0.3849, allocations: 3.591 MB / 0.538 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.3879, allocations: 2.215 MB / 0.5402 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.3901, allocations: 1.119 MB / 0.5413 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002693/0.3928, allocations: 1.557 MB / 0.5428 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007961/0.3936, allocations: 226 kB / 0.543 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.3962, allocations: 1.12 MB / 0.5441 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001676/0.3979, allocations: 1.453 MB / 0.5455 GB, free: 256 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.4003, allocations: 1.732 MB / 0.5472 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007134/0.4074, allocations: 5.723 MB / 0.5528 GB, free: 8.762 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.4075, allocations: 0 / 0.5528 GB, free: 8.762 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4075, allocations: 0 / 0.5528 GB, free: 8.762 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001718/0.4076, allocations: 0 / 0.5528 GB, free: 8.762 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009251/0.4169, allocations: 3.959 MB / 0.5567 GB, free: 4.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.417, allocations: 8.031 kB / 0.5567 GB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008806/0.4179, allocations: 0.5587 MB / 0.5572 GB, free: 4.148 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08862/0.5065, allocations: 6.97 MB / 0.564 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006502/0.513, allocations: 2.546 MB / 0.5665 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.5132, allocations: 164.5 kB / 0.5667 GB, free: 10.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.5143, allocations: 231.8 kB / 0.5669 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.5282, allocations: 7.517 MB / 0.5742 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.5284, allocations: 43.69 kB / 0.5743 GB, free: 1.984 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004937/0.5289, allocations: 115.9 kB / 0.5744 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/0.5317, allocations: 1.601 MB / 0.576 GB, free: 276 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.5431, allocations: 6.336 MB / 0.5821 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03582/0.579, allocations: 30.28 MB / 0.6117 GB, free: 10.71 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004551/0.5835, allocations: 2.178 MB / 0.6138 GB, free: 8.383 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.585, allocations: 1.063 MB / 0.6149 GB, free: 7.309 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003888/0.5854, allocations: 327.5 kB / 0.6152 GB, free: 6.934 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.5854, allocations: 50.94 kB / 0.6152 GB, free: 6.875 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 3.787e-06/0.5854, allocations: 0 / 0.6152 GB, free: 6.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03377/0.6192, allocations: 11.12 MB / 0.6261 GB, free: 11.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.6194, allocations: 196.5 kB / 0.6263 GB, free: 11.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00522/0.6246, allocations: 3.671 MB / 0.6299 GB, free: 7.742 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002476/0.6249, allocations: 45.7 kB / 0.6299 GB, free: 7.691 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.6267, allocations: 2.718 MB / 0.6326 GB, free: 4.945 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005761/0.6273, allocations: 0.5467 MB / 0.6331 GB, free: 4.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001258/0.6286, allocations: 1.06 MB / 0.6341 GB, free: 3.324 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.6287, allocations: 305.1 kB / 0.6344 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002295/0.631, allocations: 1.634 MB / 0.636 GB, free: 1.383 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004406/0.6354, allocations: 4.988 MB / 0.6409 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/0.6429, allocations: 7.194 MB / 0.6479 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.995e-05/0.6429, allocations: 32 kB / 0.6479 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01009/0.653, allocations: 6.601 MB / 0.6544 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.214e-05/0.6531, allocations: 56 kB / 0.6544 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/0.6533, allocations: 124 kB / 0.6546 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008844/0.6542, allocations: 397.2 kB / 0.6549 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003414/0.6576, allocations: 1.197 MB / 0.6561 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.6612, allocations: 3.329 MB / 0.6594 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/0.6644, allocations: 279.6 kB / 0.6596 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004709/0.6649, allocations: 324 kB / 0.6599 GB, free: 5.375 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (643): * Single equations (assignments): 639 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002585/0.6675, allocations: 1.729 MB / 0.6616 GB, free: 3.633 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005887/0.6681, allocations: 321.8 kB / 0.6619 GB, free: 3.316 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/0.6711, allocations: 1.726 MB / 0.6636 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.403e-05/0.6711, allocations: 15.94 kB / 0.6636 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.6711, allocations: 4 kB / 0.6636 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.6711, allocations: 7.969 kB / 0.6636 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008791/0.68, allocations: 5.317 MB / 0.6688 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.68, allocations: 0 / 0.6688 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009933/0.681, allocations: 195.8 kB / 0.669 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006463/0.6816, allocations: 224.6 kB / 0.6692 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.321e-05/0.6817, allocations: 27.98 kB / 0.6693 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.6847, allocations: 2.692 MB / 0.6719 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6847, allocations: 7.938 kB / 0.6719 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/0.6899, allocations: 3.741 MB / 0.6756 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.6908, allocations: 382.8 kB / 0.6759 GB, free: 4.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003385/0.6911, allocations: 20 kB / 0.6759 GB, free: 4.676 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.6923, allocations: 59.92 kB / 0.676 GB, free: 4.617 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.6924, allocations: 76.55 kB / 0.6761 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.809e-05/0.6925, allocations: 31.98 kB / 0.6761 GB, free: 4.512 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003354/0.6959, allocations: 2.301 MB / 0.6783 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6959, allocations: 0 / 0.6783 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003722/0.6996, allocations: 0.7734 MB / 0.6791 GB, free: 1.449 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005429/0.7051, allocations: 4.384 MB / 0.6834 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005942/0.711, allocations: 3.943 MB / 0.6872 GB, free: 9.102 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.7111, allocations: 8 kB / 0.6872 GB, free: 9.094 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.7125, allocations: 1.076 MB / 0.6883 GB, free: 8.004 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002153/0.7147, allocations: 372.2 kB / 0.6886 GB, free: 7.637 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2652/0.9799, allocations: 36.91 MB / 0.7247 GB, free: 184.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002933/0.9829, allocations: 2.677 MB / 0.7273 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003797/0.9867, allocations: 1.705 MB / 0.729 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002115/0.9888, allocations: 1.445 MB / 0.7304 GB, free: 183 MB / 0.5762 GB Notification: Performance of SimCode: time 1.312e-06/0.9888, allocations: 1.375 kB / 0.7304 GB, free: 183 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08159/1.07, allocations: 53.98 MB / 0.7831 GB, free: 142.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.23/23.3, allocations: 21.02 kB / 0.7831 GB, free: 142.4 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches