Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.000943/0.000943, allocations: 80.44 kB / 19.93 MB, free: 4.633 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.0009208/0.0009208, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8643/0.8643, allocations: 158.6 MB / 185 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1387/0.1387, allocations: 32.37 MB / 269.6 MB, free: 14.98 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 406.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.481e-05/2.682e-05, allocations: 2.281 kB / 406.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007456/0.007483, allocations: 8.349 MB / 415.2 MB, free: 9.871 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006199/0.01368, allocations: 3.431 MB / 418.6 MB, free: 6.43 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.0152, allocations: 55.75 kB / 418.7 MB, free: 6.375 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00249/0.01769, allocations: 1.736 MB / 420.4 MB, free: 4.633 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003729/0.02142, allocations: 1.746 MB / 422.1 MB, free: 2.879 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.02266, allocations: 0.6002 MB / 422.7 MB, free: 2.277 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004211/0.02688, allocations: 3.875 MB / 426.6 MB, free: 14.39 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002235/0.02911, allocations: 2.156 MB / 428.8 MB, free: 12.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002177/0.03129, allocations: 1.785 MB / 430.6 MB, free: 10.39 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001841/0.03313, allocations: 1.804 MB / 432.4 MB, free: 8.586 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004401/0.03357, allocations: 247.9 kB / 432.6 MB, free: 8.344 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.03485, allocations: 1.076 MB / 433.7 MB, free: 7.266 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.03596, allocations: 1.624 MB / 435.3 MB, free: 5.637 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009847/0.03695, allocations: 1.047 MB / 436.4 MB, free: 4.586 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005641/0.04259, allocations: 6.028 MB / 442.4 MB, free: 14.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.04259, allocations: 0 / 442.4 MB, free: 14.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.0426, allocations: 0 / 442.4 MB, free: 14.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001693/0.04277, allocations: 0 / 442.4 MB, free: 14.54 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.007874/0.05064, allocations: 4.048 MB / 446.4 MB, free: 10.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.05069, allocations: 8.031 kB / 446.4 MB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007359/0.05142, allocations: 0.5755 MB / 447 MB, free: 9.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04004/0.09146, allocations: 7.22 MB / 454.2 MB, free: 2.609 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004421/0.09589, allocations: 2.411 MB / 456.6 MB, free: 156 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.09603, allocations: 172.7 kB / 456.8 MB, free: 15.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006703/0.0967, allocations: 228.2 kB / 457 MB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008854/0.1056, allocations: 7.878 MB / 464.9 MB, free: 7.234 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.05e-05/0.1056, allocations: 43.67 kB / 465 MB, free: 7.191 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/0.1059, allocations: 111.9 kB / 465.1 MB, free: 7.082 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001938/0.1079, allocations: 1.664 MB / 466.7 MB, free: 5.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1638/0.2717, allocations: 6.586 MB / 473.3 MB, free: 93.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02098/0.2927, allocations: 30.15 MB / 0.4917 GB, free: 72.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.2954, allocations: 1.806 MB / 0.4934 GB, free: 71.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008772/0.2963, allocations: 1.03 MB / 0.4944 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001907/0.2965, allocations: 85.92 kB / 0.4945 GB, free: 71.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.2965, allocations: 51.8 kB / 0.4946 GB, free: 71.01 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 4.057e-06/0.2965, allocations: 0.9375 kB / 0.4946 GB, free: 71.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.02145/0.318, allocations: 11.89 MB / 0.5062 GB, free: 66.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.318, allocations: 198.3 kB / 0.5064 GB, free: 66.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004982/0.323, allocations: 4.176 MB / 0.5104 GB, free: 65.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002819/0.3233, allocations: 47.08 kB / 0.5105 GB, free: 65.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.3247, allocations: 2.769 MB / 0.5132 GB, free: 62.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007678/0.3255, allocations: 0.5753 MB / 0.5138 GB, free: 62.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/0.3267, allocations: 1.074 MB / 0.5148 GB, free: 61.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.201e-05/0.3267, allocations: 301.1 kB / 0.5151 GB, free: 61.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.3288, allocations: 1.698 MB / 0.5168 GB, free: 61.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003412/0.3323, allocations: 5.183 MB / 0.5218 GB, free: 55.76 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005625/0.3379, allocations: 7.432 MB / 0.5291 GB, free: 49.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.993e-05/0.338, allocations: 33.44 kB / 0.5291 GB, free: 49.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.0102/0.3482, allocations: 6.815 MB / 0.5358 GB, free: 44.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.711e-05/0.3483, allocations: 56.22 kB / 0.5358 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/0.3484, allocations: 128 kB / 0.5359 GB, free: 44.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007503/0.3491, allocations: 399.5 kB / 0.5363 GB, free: 43.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002367/0.3515, allocations: 1.237 MB / 0.5375 GB, free: 42.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002263/0.3537, allocations: 3.262 MB / 0.5407 GB, free: 39.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003482/0.3572, allocations: 328.7 kB / 0.541 GB, free: 39.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000566/0.3578, allocations: 334 kB / 0.5413 GB, free: 38.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.002019/0.3598, allocations: 1.777 MB / 0.5431 GB, free: 37.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000639/0.3605, allocations: 335.2 kB / 0.5434 GB, free: 37.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.3623, allocations: 1.852 MB / 0.5452 GB, free: 35.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/0.3624, allocations: 19.83 kB / 0.5452 GB, free: 35.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.3624, allocations: 4 kB / 0.5452 GB, free: 35.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3624, allocations: 7.969 kB / 0.5452 GB, free: 35.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/0.3682, allocations: 5.321 MB / 0.5504 GB, free: 29.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.3682, allocations: 1.625 kB / 0.5504 GB, free: 29.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005562/0.3688, allocations: 211.7 kB / 0.5506 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000381/0.3691, allocations: 232.7 kB / 0.5509 GB, free: 29.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-05/0.3692, allocations: 27.92 kB / 0.5509 GB, free: 29.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001617/0.3708, allocations: 2.624 MB / 0.5534 GB, free: 26.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3708, allocations: 3.938 kB / 0.5535 GB, free: 26.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003248/0.3741, allocations: 3.909 MB / 0.5573 GB, free: 22.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.3752, allocations: 0.5132 MB / 0.5578 GB, free: 22.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.3754, allocations: 27.52 kB / 0.5578 GB, free: 22.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007626/0.3762, allocations: 103.8 kB / 0.5579 GB, free: 22.08 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.3763, allocations: 88.31 kB / 0.558 GB, free: 21.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.104e-05/0.3764, allocations: 44 kB / 0.558 GB, free: 21.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002417/0.3788, allocations: 2.518 MB / 0.5605 GB, free: 19.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3788, allocations: 4.062 kB / 0.5605 GB, free: 19.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00346/0.3822, allocations: 0.9139 MB / 0.5614 GB, free: 18.53 MB / 442.7 MB 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 (112): * Single equations (assignments): 108 * 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.003312/0.3856, allocations: 4.549 MB / 0.5658 GB, free: 13.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004068/0.3896, allocations: 3.961 MB / 0.5697 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.3896, allocations: 1.125 kB / 0.5697 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.3907, allocations: 1.065 MB / 0.5707 GB, free: 8.926 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/0.3926, allocations: 389.8 kB / 0.5711 GB, free: 8.559 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04347/0.4361, allocations: 38.74 MB / 0.6089 GB, free: 12.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.4381, allocations: 2.212 MB / 0.6111 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002854/0.4409, allocations: 1.766 MB / 0.6128 GB, free: 8.605 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/0.4426, allocations: 1.516 MB / 0.6143 GB, free: 7.09 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4426, allocations: 3.938 kB / 0.6143 GB, free: 7.086 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2386/0.6812, allocations: 57.63 MB / 0.6706 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.67/10.35, allocations: 1.875 kB / 0.6706 GB, free: 150.5 MB / 0.5105 GB " [Timeout remaining time 650] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.508033280260861]