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.001167/0.001167, allocations: 75.7 kB / 20.01 MB, free: 4.508 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.001225/0.001225, allocations: 169.9 kB / 23.31 MB, free: 1.211 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.842/0.842, allocations: 158.6 MB / 185.1 MB, free: 3.008 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.127/0.127, allocations: 32.37 MB / 269.7 MB, free: 14.91 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.003e-06/2.003e-06, allocations: 0 / 407 MB, free: 2.152 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.246e-05, allocations: 6.078 kB / 407 MB, free: 2.148 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.00766/0.007682, allocations: 8.354 MB / 415.4 MB, free: 9.75 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006556/0.01424, allocations: 3.423 MB / 418.8 MB, free: 6.316 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.01619, allocations: 59.75 kB / 418.9 MB, free: 6.258 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.01883, allocations: 1.74 MB / 420.6 MB, free: 4.512 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.02302, allocations: 1.734 MB / 422.4 MB, free: 2.77 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.02409, allocations: 0.6118 MB / 423 MB, free: 2.156 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.004251/0.02834, allocations: 3.871 MB / 426.8 MB, free: 14.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002795/0.03114, allocations: 2.156 MB / 429 MB, free: 12.07 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.03348, allocations: 1.785 MB / 430.8 MB, free: 10.28 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001944/0.03542, allocations: 1.804 MB / 432.6 MB, free: 8.469 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005571/0.03598, allocations: 240 kB / 432.8 MB, free: 8.234 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.03766, allocations: 1.076 MB / 433.9 MB, free: 7.156 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.03907, allocations: 1.632 MB / 435.5 MB, free: 5.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.0413, allocations: 1.044 MB / 436.6 MB, free: 4.473 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007479/0.04878, allocations: 6.024 MB / 442.6 MB, free: 14.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.04879, allocations: 0 / 442.6 MB, free: 14.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.04879, allocations: 0 / 442.6 MB, free: 14.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002749/0.04907, allocations: 0 / 442.6 MB, free: 14.43 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.01116/0.06023, allocations: 4.052 MB / 446.6 MB, free: 10.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.022e-05/0.0603, allocations: 8.031 kB / 446.7 MB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001205/0.0615, allocations: 0.5755 MB / 447.2 MB, free: 9.727 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03931/0.1008, allocations: 7.22 MB / 454.4 MB, free: 2.496 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004976/0.1058, allocations: 2.427 MB / 456.9 MB, free: 24 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.1059, allocations: 176.7 kB / 457 MB, free: 15.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005388/0.1065, allocations: 232.1 kB / 457.3 MB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009373/0.1158, allocations: 7.875 MB / 465.1 MB, free: 7.102 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.742e-05/0.1159, allocations: 43.69 kB / 465.2 MB, free: 7.059 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002745/0.1162, allocations: 111.9 kB / 465.3 MB, free: 6.949 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001595/0.1178, allocations: 1.668 MB / 467 MB, free: 5.273 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1793/0.2971, allocations: 6.592 MB / 473.6 MB, free: 93.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.3171, allocations: 30.21 MB / 0.492 GB, free: 72.31 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.3197, allocations: 1.805 MB / 0.4937 GB, free: 71.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007939/0.3205, allocations: 1.03 MB / 0.4947 GB, free: 71.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.3207, allocations: 87.05 kB / 0.4948 GB, free: 71.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3207, allocations: 49.16 kB / 0.4949 GB, free: 71.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 3.917e-06/0.3207, allocations: 0 / 0.4949 GB, free: 71.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01962/0.3403, allocations: 11.89 MB / 0.5065 GB, free: 67.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.3404, allocations: 193.5 kB / 0.5067 GB, free: 66.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004424/0.3448, allocations: 4.173 MB / 0.5107 GB, free: 65.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002576/0.3451, allocations: 46.61 kB / 0.5108 GB, free: 65.28 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.3462, allocations: 2.766 MB / 0.5135 GB, free: 63.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005243/0.3468, allocations: 0.5777 MB / 0.514 GB, free: 62.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.348, allocations: 1.078 MB / 0.5151 GB, free: 62.13 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.592e-05/0.348, allocations: 302.3 kB / 0.5154 GB, free: 61.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.35, allocations: 1.696 MB / 0.517 GB, free: 61.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00278/0.3528, allocations: 5.185 MB / 0.5221 GB, free: 56.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004545/0.3573, allocations: 7.425 MB / 0.5294 GB, free: 49.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.081e-05/0.3574, allocations: 39.59 kB / 0.5294 GB, free: 49.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.007313/0.3647, allocations: 6.817 MB / 0.5361 GB, free: 44.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.3647, allocations: 59.75 kB / 0.5361 GB, free: 44.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.191e-05/0.3648, allocations: 120 kB / 0.5362 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005362/0.3653, allocations: 401.6 kB / 0.5366 GB, free: 43.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.3671, allocations: 1.241 MB / 0.5378 GB, free: 42.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/0.3691, allocations: 3.252 MB / 0.541 GB, free: 39.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/0.3718, allocations: 335.8 kB / 0.5413 GB, free: 39.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.372, allocations: 338.6 kB / 0.5416 GB, free: 38.89 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.00161/0.3736, allocations: 1.783 MB / 0.5434 GB, free: 37.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000456/0.3741, allocations: 333.7 kB / 0.5437 GB, free: 36.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.3758, allocations: 1.845 MB / 0.5455 GB, free: 35.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.3758, allocations: 16 kB / 0.5455 GB, free: 35.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3758, allocations: 0 / 0.5455 GB, free: 35.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.3758, allocations: 11.97 kB / 0.5455 GB, free: 35.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005227/0.381, allocations: 5.32 MB / 0.5507 GB, free: 29.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.381, allocations: 0 / 0.5507 GB, free: 29.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.3816, allocations: 219.7 kB / 0.5509 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003543/0.3819, allocations: 228.6 kB / 0.5511 GB, free: 29.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/0.382, allocations: 31.92 kB / 0.5512 GB, free: 29.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.3836, allocations: 2.631 MB / 0.5537 GB, free: 26.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3836, allocations: 0 / 0.5537 GB, free: 26.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.3868, allocations: 3.905 MB / 0.5576 GB, free: 22.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.3879, allocations: 0.5193 MB / 0.5581 GB, free: 22.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.3881, allocations: 24 kB / 0.5581 GB, free: 22.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007311/0.3889, allocations: 103.8 kB / 0.5582 GB, free: 21.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.389, allocations: 84.52 kB / 0.5583 GB, free: 21.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.942e-05/0.389, allocations: 39.98 kB / 0.5583 GB, free: 21.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002287/0.3913, allocations: 2.518 MB / 0.5608 GB, free: 19.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3913, allocations: 0 / 0.5608 GB, free: 19.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003427/0.3948, allocations: 0.91 MB / 0.5617 GB, free: 18.42 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.003355/0.3981, allocations: 4.565 MB / 0.5661 GB, free: 13.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004374/0.4025, allocations: 3.955 MB / 0.57 GB, free: 9.891 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4025, allocations: 8.25 kB / 0.57 GB, free: 9.883 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.4034, allocations: 1.057 MB / 0.571 GB, free: 8.812 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.4053, allocations: 379.4 kB / 0.5714 GB, free: 8.453 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04373/0.449, allocations: 38.76 MB / 0.6092 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/0.451, allocations: 2.204 MB / 0.6114 GB, free: 10.26 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002705/0.4537, allocations: 1.763 MB / 0.6131 GB, free: 8.496 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/0.4552, allocations: 1.516 MB / 0.6146 GB, free: 6.98 MB / 490.7 MB Notification: Performance of SimCode: time 2.755e-06/0.4552, allocations: 0 / 0.6146 GB, free: 6.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2583/0.7135, allocations: 57.77 MB / 0.671 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.197/9.911, allocations: 3.031 kB / 0.671 GB, free: 150.9 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.060730715282261]