Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008591/0.0008591, allocations: 79.7 kB / 20.67 MB, free: 3.883 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.00128/0.00128, allocations: 170 kB / 23.95 MB, free: 0.6016 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.8842/0.8842, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2345/0.2345, allocations: 34.25 MB / 294.9 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.259e-05/2.459e-05, allocations: 2.281 kB / 442.2 MB, free: 1.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1804/0.1804, allocations: 7.923 MB / 450.1 MB, free: 40.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.1837, allocations: 3.375 MB / 453.5 MB, free: 38.11 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005291/0.1842, allocations: 55.31 kB / 453.5 MB, free: 38.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1857, allocations: 1.711 MB / 455.2 MB, free: 37.37 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001761/0.1875, allocations: 1.63 MB / 456.9 MB, free: 36.63 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000784/0.1882, allocations: 0.6051 MB / 457.5 MB, free: 36.39 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002519/0.1908, allocations: 3.968 MB / 461.4 MB, free: 34.88 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001705/0.1925, allocations: 2.076 MB / 463.5 MB, free: 33.95 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.194, allocations: 1.679 MB / 465.2 MB, free: 33.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.1953, allocations: 1.701 MB / 466.9 MB, free: 32.8 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003388/0.1957, allocations: 222.8 kB / 467.1 MB, free: 32.8 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009711/0.1966, allocations: 1.045 MB / 468.1 MB, free: 32.6 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006376/0.1973, allocations: 1.514 MB / 469.7 MB, free: 31.97 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006488/0.1979, allocations: 0.9756 MB / 470.6 MB, free: 31.49 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003069/0.201, allocations: 5.621 MB / 476.3 MB, free: 29.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.201, allocations: 11.94 kB / 476.3 MB, free: 29.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.201, allocations: 0 / 476.3 MB, free: 29.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001127/0.2011, allocations: 0 / 476.3 MB, free: 29.58 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.005932/0.207, allocations: 3.837 MB / 480.1 MB, free: 27.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.2071, allocations: 12.47 kB / 480.1 MB, free: 27.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005598/0.2076, allocations: 0.543 MB / 480.7 MB, free: 27.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03955/0.2472, allocations: 7.151 MB / 487.8 MB, free: 26.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004642/0.2518, allocations: 2.177 MB / 490 MB, free: 25.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.2519, allocations: 160.8 kB / 490.1 MB, free: 25.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004783/0.2524, allocations: 219 kB / 490.4 MB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009462/0.2619, allocations: 7.395 MB / 497.8 MB, free: 21.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-05/0.262, allocations: 55 kB / 497.8 MB, free: 21.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.2622, allocations: 102.5 kB / 497.9 MB, free: 21.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00156/0.2638, allocations: 1.547 MB / 499.5 MB, free: 20.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008132/0.2719, allocations: 6.166 MB / 0.4938 GB, free: 16.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02388/0.2958, allocations: 28.93 MB / 0.522 GB, free: 2.941 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003178/0.299, allocations: 1.681 MB / 0.5237 GB, free: 1.227 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009928/0.2999, allocations: 0.9964 MB / 0.5246 GB, free: 224 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001994/0.3001, allocations: 88.19 kB / 0.5247 GB, free: 136 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3002, allocations: 51.05 kB / 0.5248 GB, free: 76 kB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.527e-06/0.3002, allocations: 0 / 0.5248 GB, free: 76 kB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.02009/0.3203, allocations: 11.3 MB / 0.5358 GB, free: 4.703 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.3204, allocations: 196.5 kB / 0.536 GB, free: 4.469 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/0.3249, allocations: 3.998 MB / 0.5399 GB, free: 480 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002163/0.3251, allocations: 45.7 kB / 0.5399 GB, free: 428 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.3265, allocations: 2.644 MB / 0.5425 GB, free: 13.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005776/0.327, allocations: 0.5428 MB / 0.5431 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.3283, allocations: 1.032 MB / 0.5441 GB, free: 12.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.665e-05/0.3284, allocations: 301.1 kB / 0.5444 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.3302, allocations: 1.63 MB / 0.5459 GB, free: 10.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003496/0.3337, allocations: 5.02 MB / 0.5508 GB, free: 3.504 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005866/0.3395, allocations: 7.176 MB / 0.5579 GB, free: 10.67 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.804e-05/0.3396, allocations: 32 kB / 0.5579 GB, free: 10.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.009322/0.3489, allocations: 6.568 MB / 0.5643 GB, free: 4.062 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.237e-05/0.349, allocations: 56 kB / 0.5644 GB, free: 4.008 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/0.3491, allocations: 120 kB / 0.5645 GB, free: 3.891 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006793/0.3498, allocations: 397.1 kB / 0.5648 GB, free: 3.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.3521, allocations: 1.194 MB / 0.566 GB, free: 2.305 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00295/0.355, allocations: 3.246 MB / 0.5692 GB, free: 14.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.3577, allocations: 311.5 kB / 0.5695 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004463/0.3582, allocations: 328 kB / 0.5698 GB, free: 14.32 MB / 490.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.002102/0.3603, allocations: 1.698 MB / 0.5714 GB, free: 12.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004789/0.3607, allocations: 321.8 kB / 0.5718 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.3627, allocations: 1.71 MB / 0.5734 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-05/0.3627, allocations: 16 kB / 0.5734 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3627, allocations: 4 kB / 0.5734 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.3628, allocations: 7.969 kB / 0.5735 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006784/0.3695, allocations: 5.015 MB / 0.5783 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.3696, allocations: 4 kB / 0.5784 GB, free: 5.469 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.3702, allocations: 191.7 kB / 0.5785 GB, free: 5.281 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.3706, allocations: 233 kB / 0.5788 GB, free: 5.051 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.977e-05/0.3707, allocations: 27.92 kB / 0.5788 GB, free: 5.023 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00209/0.3728, allocations: 2.608 MB / 0.5813 GB, free: 2.301 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.3728, allocations: 11.92 kB / 0.5813 GB, free: 2.289 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003927/0.3767, allocations: 3.731 MB / 0.585 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/0.3775, allocations: 321.8 kB / 0.5853 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/0.3778, allocations: 27.91 kB / 0.5853 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007397/0.3785, allocations: 91.86 kB / 0.5854 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3787, allocations: 76.39 kB / 0.5855 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.794e-05/0.3787, allocations: 36 kB / 0.5855 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002811/0.3815, allocations: 2.401 MB / 0.5879 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3815, allocations: 0 / 0.5879 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002843/0.3844, allocations: 0.8631 MB / 0.5887 GB, free: 10.72 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.00401/0.3884, allocations: 4.378 MB / 0.593 GB, free: 6.305 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004186/0.3926, allocations: 3.786 MB / 0.5967 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3926, allocations: 0 / 0.5967 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.3938, allocations: 0.986 MB / 0.5976 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.3954, allocations: 371 kB / 0.598 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03951/0.4349, allocations: 36.98 MB / 0.6341 GB, free: 7.164 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.4372, allocations: 2.081 MB / 0.6361 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002671/0.4399, allocations: 1.706 MB / 0.6378 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001523/0.4414, allocations: 1.414 MB / 0.6392 GB, free: 1.922 MB / 0.5417 GB Notification: Performance of SimCode: time 1.593e-06/0.4414, allocations: 0 / 0.6392 GB, free: 1.922 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2384/0.6798, allocations: 55.14 MB / 0.693 GB, free: 155.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.928/10.61, allocations: 17.67 kB / 0.6931 GB, free: 155.3 MB / 0.5417 GB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.692851761355996]