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.001484/0.001484, allocations: 100.3 kB / 19.69 MB, free: 1.805 MB / 14.72 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.001515/0.001515, allocations: 215.7 kB / 22.99 MB, free: 4.602 MB / 14.72 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 1.465/1.465, allocations: 207.7 MB / 233.8 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.2359/0.2359, allocations: 44.26 MB / 330.3 MB, free: 9.324 MB / 270.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 67.91 kB / 467.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1201, allocations: 61.05 MB / 0.5162 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01111/0.1312, allocations: 8.339 MB / 0.5243 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007761/0.139, allocations: 3.428 MB / 0.5276 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1406, allocations: 59.69 kB / 0.5277 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.1442, allocations: 1.655 MB / 0.5293 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004902/0.1491, allocations: 1.689 MB / 0.531 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1504, allocations: 0.5653 MB / 0.5315 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005027/0.1555, allocations: 3.509 MB / 0.5349 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002643/0.1581, allocations: 1.895 MB / 0.5368 GB, free: 1.926 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.1599, allocations: 1.179 MB / 0.5379 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2256/0.3855, allocations: 1.693 MB / 0.5396 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009702/0.3865, allocations: 237.2 kB / 0.5398 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.389, allocations: 1.025 MB / 0.5408 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001832/0.3908, allocations: 1.552 MB / 0.5423 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00221/0.393, allocations: 1.345 MB / 0.5437 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008694/0.4017, allocations: 5.984 MB / 0.5495 GB, free: 11.24 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4017, allocations: 0.6562 kB / 0.5495 GB, free: 11.24 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4017, allocations: 0 / 0.5495 GB, free: 11.24 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001995/0.4019, allocations: 2.281 kB / 0.5495 GB, free: 11.24 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01255/0.4145, allocations: 4.02 MB / 0.5534 GB, free: 9.562 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4145, allocations: 9.062 kB / 0.5534 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001325/0.4158, allocations: 0.5784 MB / 0.554 GB, free: 9.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08362/0.4995, allocations: 6.997 MB / 0.5608 GB, free: 9.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007921/0.5074, allocations: 2.673 MB / 0.5634 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002152/0.5076, allocations: 174.4 kB / 0.5636 GB, free: 7.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.5087, allocations: 230.4 kB / 0.5638 GB, free: 7.805 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.5217, allocations: 7.875 MB / 0.5715 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.5218, allocations: 38.52 kB / 0.5716 GB, free: 3.016 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003483/0.5222, allocations: 112.3 kB / 0.5717 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002376/0.5246, allocations: 1.667 MB / 0.5733 GB, free: 2.352 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.5358, allocations: 6.617 MB / 0.5798 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/0.5773, allocations: 29.93 MB / 0.609 GB, free: 2.188 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004525/0.5818, allocations: 1.742 MB / 0.6107 GB, free: 428 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.5834, allocations: 1.028 MB / 0.6117 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003063/0.5837, allocations: 90.64 kB / 0.6118 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.5837, allocations: 47.06 kB / 0.6118 GB, free: 15.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 4.098e-06/0.5837, allocations: 0 / 0.6118 GB, free: 15.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03448/0.6182, allocations: 11.46 MB / 0.623 GB, free: 3.766 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.6183, allocations: 200 kB / 0.6232 GB, free: 3.527 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005632/0.624, allocations: 3.963 MB / 0.6271 GB, free: 15.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.6242, allocations: 45.38 kB / 0.6271 GB, free: 15.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00225/0.6265, allocations: 2.802 MB / 0.6299 GB, free: 12.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007349/0.6272, allocations: 0.5775 MB / 0.6304 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.6287, allocations: 1.088 MB / 0.6315 GB, free: 11.07 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6288, allocations: 309.1 kB / 0.6318 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.6315, allocations: 1.693 MB / 0.6334 GB, free: 9.062 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005491/0.637, allocations: 5.188 MB / 0.6385 GB, free: 2.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009064/0.646, allocations: 7.436 MB / 0.6458 GB, free: 9.453 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/0.6461, allocations: 35.56 kB / 0.6458 GB, free: 9.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01278/0.6589, allocations: 6.809 MB / 0.6524 GB, free: 2.598 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.381e-05/0.659, allocations: 56.97 kB / 0.6525 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/0.6592, allocations: 120 kB / 0.6526 GB, free: 2.426 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000935/0.6601, allocations: 404.6 kB / 0.653 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/0.664, allocations: 1.236 MB / 0.6542 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004077/0.6681, allocations: 3.205 MB / 0.6573 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003899/0.672, allocations: 295.7 kB / 0.6576 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006053/0.6726, allocations: 339.9 kB / 0.6579 GB, free: 12.85 MB / 0.4981 GB 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.003011/0.6756, allocations: 1.781 MB / 0.6597 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/0.6762, allocations: 333.7 kB / 0.66 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.6797, allocations: 1.845 MB / 0.6618 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/0.6797, allocations: 19.94 kB / 0.6618 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.6797, allocations: 4 kB / 0.6618 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.6797, allocations: 7.984 kB / 0.6618 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009817/0.6895, allocations: 5.231 MB / 0.6669 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6896, allocations: 0 / 0.6669 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.6906, allocations: 215.7 kB / 0.6671 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006709/0.6913, allocations: 235.2 kB / 0.6674 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.592e-05/0.6914, allocations: 23.94 kB / 0.6674 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/0.6945, allocations: 2.578 MB / 0.6699 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6945, allocations: 3.938 kB / 0.6699 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005778/0.7003, allocations: 3.909 MB / 0.6737 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001542/0.7018, allocations: 493.5 kB / 0.6742 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004117/0.7022, allocations: 27.92 kB / 0.6742 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.7034, allocations: 67.92 kB / 0.6743 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.7036, allocations: 76.5 kB / 0.6744 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.7037, allocations: 39.98 kB / 0.6744 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003868/0.7076, allocations: 2.35 MB / 0.6767 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.7076, allocations: 0 / 0.6767 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004072/0.7116, allocations: 0.8115 MB / 0.6775 GB, free: 8.648 MB / 0.5137 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 (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.006192/0.7178, allocations: 4.553 MB / 0.6819 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006961/0.7248, allocations: 3.956 MB / 0.6858 GB, free: 124 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.7248, allocations: 0 / 0.6858 GB, free: 124 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00172/0.7265, allocations: 1.057 MB / 0.6868 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/0.7289, allocations: 388.9 kB / 0.6872 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06197/0.7909, allocations: 38.2 MB / 0.7245 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003279/0.7941, allocations: 2.217 MB / 0.7267 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004223/0.7984, allocations: 1.754 MB / 0.7284 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/0.8008, allocations: 1.503 MB / 0.7299 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.653e-06/0.8008, allocations: 7.938 kB / 0.7299 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3624/1.163, allocations: 55.83 MB / 0.7844 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.45/16.62, allocations: 3.094 kB / 0.7844 GB, free: 218.9 MB / 0.6075 GB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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: 19.831339170224965]