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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9504/0.9504, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.242/0.242, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.735e-06/2.735e-06, allocations: 0 / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.149e-05/3.422e-05, allocations: 7.547 kB / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1966/0.1966, allocations: 7.923 MB / 447.5 MB, free: 42.37 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004284/0.2009, allocations: 3.373 MB / 450.9 MB, free: 40.6 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006272/0.2015, allocations: 59.44 kB / 450.9 MB, free: 40.58 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.2031, allocations: 1.704 MB / 452.6 MB, free: 39.86 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002013/0.2051, allocations: 1.636 MB / 454.3 MB, free: 39.12 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006992/0.2058, allocations: 0.5983 MB / 454.9 MB, free: 38.89 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002517/0.2083, allocations: 3.958 MB / 458.8 MB, free: 37.38 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001376/0.2097, allocations: 2.081 MB / 460.9 MB, free: 36.45 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.2109, allocations: 1.676 MB / 462.6 MB, free: 35.74 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.2121, allocations: 1.698 MB / 464.3 MB, free: 35.3 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.2123, allocations: 227.6 kB / 464.5 MB, free: 35.3 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009005/0.2132, allocations: 1.044 MB / 465.5 MB, free: 35.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005881/0.2138, allocations: 1.522 MB / 467.1 MB, free: 34.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005119/0.2143, allocations: 0.9689 MB / 468 MB, free: 33.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.2169, allocations: 5.622 MB / 473.7 MB, free: 32.08 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2169, allocations: 3.219 kB / 473.7 MB, free: 32.08 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2169, allocations: 0 / 473.7 MB, free: 32.08 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.822e-05/0.2169, allocations: 0 / 473.7 MB, free: 32.08 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.003939/0.2209, allocations: 3.844 MB / 477.5 MB, free: 29.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2209, allocations: 9.969 kB / 477.5 MB, free: 29.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004561/0.2214, allocations: 0.538 MB / 478.1 MB, free: 29.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03862/0.26, allocations: 7.162 MB / 485.2 MB, free: 29.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/0.2638, allocations: 2.177 MB / 487.4 MB, free: 27.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-05/0.2638, allocations: 160 kB / 487.6 MB, free: 27.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.2641, allocations: 220.6 kB / 487.8 MB, free: 27.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007062/0.2712, allocations: 7.396 MB / 495.2 MB, free: 24.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-05/0.2712, allocations: 40.42 kB / 495.2 MB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000205/0.2715, allocations: 111 kB / 495.3 MB, free: 23.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001556/0.273, allocations: 1.545 MB / 496.9 MB, free: 23.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006418/0.2794, allocations: 6.169 MB / 0.4912 GB, free: 20.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01776/0.2972, allocations: 28.93 MB / 0.5195 GB, free: 6.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.2997, allocations: 1.693 MB / 0.5211 GB, free: 5.117 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008707/0.3005, allocations: 0.9902 MB / 0.5221 GB, free: 4.117 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001677/0.3007, allocations: 92.23 kB / 0.5222 GB, free: 4.027 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.3007, allocations: 54.98 kB / 0.5222 GB, free: 3.965 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.136e-06/0.3007, allocations: 0 / 0.5222 GB, free: 3.965 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.0183/0.319, allocations: 11.31 MB / 0.5333 GB, free: 8.586 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.373e-05/0.3191, allocations: 196.7 kB / 0.5335 GB, free: 8.352 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/0.3224, allocations: 4.006 MB / 0.5374 GB, free: 4.344 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.942e-05/0.3225, allocations: 41.7 kB / 0.5374 GB, free: 4.297 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3237, allocations: 2.636 MB / 0.54 GB, free: 1.633 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.3241, allocations: 0.5467 MB / 0.5405 GB, free: 1.082 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008323/0.3249, allocations: 1.032 MB / 0.5415 GB, free: 40 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.3251, allocations: 301.1 kB / 0.5418 GB, free: 15.74 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.3267, allocations: 1.626 MB / 0.5434 GB, free: 14.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/0.3301, allocations: 5.027 MB / 0.5483 GB, free: 7.383 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005218/0.3353, allocations: 7.173 MB / 0.5553 GB, free: 14.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.167e-05/0.3353, allocations: 32 kB / 0.5554 GB, free: 14.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.006612/0.3419, allocations: 6.571 MB / 0.5618 GB, free: 7.941 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/0.342, allocations: 56 kB / 0.5618 GB, free: 7.887 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.661e-05/0.342, allocations: 120.9 kB / 0.5619 GB, free: 7.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.3426, allocations: 396.6 kB / 0.5623 GB, free: 7.379 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002153/0.3447, allocations: 1.189 MB / 0.5635 GB, free: 6.188 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.3472, allocations: 3.238 MB / 0.5667 GB, free: 2.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.3492, allocations: 319.6 kB / 0.567 GB, free: 2.527 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/0.3495, allocations: 324 kB / 0.5673 GB, free: 2.211 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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.001732/0.3512, allocations: 1.706 MB / 0.5689 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002661/0.3515, allocations: 317.8 kB / 0.5692 GB, free: 184 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.3535, allocations: 1.71 MB / 0.5709 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.3536, allocations: 16 kB / 0.5709 GB, free: 14.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3536, allocations: 7.984 kB / 0.5709 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3536, allocations: 3.984 kB / 0.5709 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005197/0.3588, allocations: 5.011 MB / 0.5758 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3588, allocations: 1.375 kB / 0.5758 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/0.3592, allocations: 199.7 kB / 0.576 GB, free: 9.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/0.3596, allocations: 228.8 kB / 0.5762 GB, free: 8.934 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/0.3597, allocations: 27.88 kB / 0.5763 GB, free: 8.906 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.3619, allocations: 2.617 MB / 0.5788 GB, free: 6.176 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3619, allocations: 0 / 0.5788 GB, free: 6.176 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/0.3651, allocations: 3.737 MB / 0.5825 GB, free: 2.395 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003324/0.3654, allocations: 321.7 kB / 0.5828 GB, free: 2.078 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/0.3656, allocations: 20 kB / 0.5828 GB, free: 2.059 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006677/0.3662, allocations: 95.86 kB / 0.5829 GB, free: 1.965 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3664, allocations: 76.39 kB / 0.583 GB, free: 1.891 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.3664, allocations: 36 kB / 0.583 GB, free: 1.855 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002546/0.369, allocations: 2.405 MB / 0.5853 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/0.369, allocations: 0 / 0.5853 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002425/0.3714, allocations: 0.8592 MB / 0.5862 GB, free: 14.6 MB / 0.4948 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.00374/0.3751, allocations: 4.374 MB / 0.5905 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004102/0.3792, allocations: 3.792 MB / 0.5942 GB, free: 6.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3792, allocations: 0 / 0.5942 GB, free: 6.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008768/0.3801, allocations: 0.9935 MB / 0.5951 GB, free: 5.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.3813, allocations: 368.6 kB / 0.5955 GB, free: 5.062 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03673/0.418, allocations: 36.98 MB / 0.6316 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001791/0.4198, allocations: 2.081 MB / 0.6336 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002321/0.4222, allocations: 1.706 MB / 0.6353 GB, free: 7.219 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.4237, allocations: 1.414 MB / 0.6367 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of SimCode: time 1.352e-06/0.4237, allocations: 0 / 0.6367 GB, free: 5.805 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2586/0.6824, allocations: 55.14 MB / 0.6905 GB, free: 159.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.72, allocations: 7.938 kB / 0.6905 GB, free: 159.4 MB / 0.5417 GB " [Timeout remaining time 649] (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.0009996 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Distance1.distance in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.948702556081116]