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.001426/0.001426, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001536/0.001536, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.2395/0.2395, allocations: 46.94 MB / 360.9 MB, free: 4.359 MB / 286.1 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 0.002075/0.002075, allocations: 67.84 kB / 0.4962 GB, free: 7.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.4002, allocations: 66.03 MB / 0.5606 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01156/0.4118, allocations: 8.997 MB / 0.5694 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008275/0.42, allocations: 3.586 MB / 0.5729 GB, free: 7.828 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.4216, allocations: 59.69 kB / 0.573 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003907/0.4255, allocations: 1.693 MB / 0.5746 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00472/0.4302, allocations: 1.584 MB / 0.5762 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.4319, allocations: 0.5575 MB / 0.5767 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005979/0.4379, allocations: 3.583 MB / 0.5802 GB, free: 340 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003051/0.4409, allocations: 1.817 MB / 0.582 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.4433, allocations: 1.117 MB / 0.5831 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003199/0.4465, allocations: 1.67 MB / 0.5847 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000873/0.4474, allocations: 220 kB / 0.5849 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.4499, allocations: 1.135 MB / 0.586 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001862/0.4518, allocations: 1.453 MB / 0.5875 GB, free: 8.852 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002442/0.4542, allocations: 1.685 MB / 0.5891 GB, free: 7.156 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007204/0.4614, allocations: 5.572 MB / 0.5946 GB, free: 1.562 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4614, allocations: 0 / 0.5946 GB, free: 1.562 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4614, allocations: 0 / 0.5946 GB, free: 1.562 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000154/0.4616, allocations: 7.938 kB / 0.5946 GB, free: 1.555 MB / 430.1 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.009773/0.4714, allocations: 3.799 MB / 0.5983 GB, free: 13.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4714, allocations: 12.03 kB / 0.5983 GB, free: 13.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008435/0.4723, allocations: 0.5423 MB / 0.5988 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08519/0.5574, allocations: 6.951 MB / 0.6056 GB, free: 6.168 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006079/0.5635, allocations: 2.329 MB / 0.6079 GB, free: 3.801 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.5637, allocations: 172.2 kB / 0.608 GB, free: 3.629 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007419/0.5644, allocations: 211.8 kB / 0.6082 GB, free: 3.422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.5777, allocations: 7.339 MB / 0.6154 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/0.5778, allocations: 35.7 kB / 0.6154 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003563/0.5782, allocations: 111.8 kB / 0.6155 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002766/0.5809, allocations: 1.55 MB / 0.6171 GB, free: 9.758 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/0.5934, allocations: 6.178 MB / 0.6231 GB, free: 3.57 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04/0.6334, allocations: 29.78 MB / 0.6522 GB, free: 4.863 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0045/0.6379, allocations: 1.641 MB / 0.6538 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.6394, allocations: 0.9924 MB / 0.6548 GB, free: 2.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003175/0.6397, allocations: 84.31 kB / 0.6548 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.6398, allocations: 50.94 kB / 0.6549 GB, free: 2.039 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.877e-06/0.6398, allocations: 0 / 0.6549 GB, free: 2.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03387/0.6737, allocations: 10.91 MB / 0.6655 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.6738, allocations: 196.5 kB / 0.6657 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005789/0.6796, allocations: 3.618 MB / 0.6693 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003036/0.6799, allocations: 41.7 kB / 0.6693 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002467/0.6824, allocations: 2.671 MB / 0.6719 GB, free: 472 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007107/0.6831, allocations: 0.5506 MB / 0.6724 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/0.6845, allocations: 1.048 MB / 0.6735 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.6846, allocations: 301.1 kB / 0.6738 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002554/0.6872, allocations: 1.634 MB / 0.6754 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005889/0.6931, allocations: 4.969 MB / 0.6802 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009806/0.7029, allocations: 7.161 MB / 0.6872 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/0.703, allocations: 35.94 kB / 0.6872 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01379/0.7168, allocations: 6.574 MB / 0.6937 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.7169, allocations: 56 kB / 0.6937 GB, free: 6.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/0.7171, allocations: 120 kB / 0.6938 GB, free: 6.641 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009913/0.7181, allocations: 400.7 kB / 0.6942 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00425/0.7223, allocations: 1.185 MB / 0.6954 GB, free: 5.062 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004281/0.7266, allocations: 3.21 MB / 0.6985 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003957/0.7305, allocations: 291.5 kB / 0.6988 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007729/0.7313, allocations: 328 kB / 0.6991 GB, free: 1.133 MB / 0.5294 GB 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.002925/0.7342, allocations: 1.711 MB / 0.7008 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006168/0.7349, allocations: 309.9 kB / 0.7011 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.7381, allocations: 1.71 MB / 0.7027 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.732e-05/0.7382, allocations: 20 kB / 0.7027 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.7382, allocations: 4.047 kB / 0.7027 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.7382, allocations: 11.92 kB / 0.7028 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009771/0.748, allocations: 5.207 MB / 0.7078 GB, free: 8.059 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.748, allocations: 0 / 0.7078 GB, free: 8.059 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.749, allocations: 195.7 kB / 0.708 GB, free: 7.867 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007074/0.7497, allocations: 228.7 kB / 0.7082 GB, free: 7.641 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.415e-05/0.7498, allocations: 20 kB / 0.7083 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003345/0.7531, allocations: 2.6 MB / 0.7108 GB, free: 4.902 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/0.7531, allocations: 11.91 kB / 0.7108 GB, free: 4.891 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005753/0.7589, allocations: 3.723 MB / 0.7145 GB, free: 1.137 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009656/0.7599, allocations: 293.8 kB / 0.7147 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003888/0.7602, allocations: 24 kB / 0.7148 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.7614, allocations: 71.91 kB / 0.7148 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.7616, allocations: 76.45 kB / 0.7149 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.7617, allocations: 36 kB / 0.7149 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003735/0.7654, allocations: 2.261 MB / 0.7171 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.7654, allocations: 0 / 0.7171 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004012/0.7694, allocations: 0.7577 MB / 0.7179 GB, free: 13.64 MB / 0.5606 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.006277/0.7757, allocations: 4.358 MB / 0.7221 GB, free: 9.238 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006529/0.7822, allocations: 3.79 MB / 0.7258 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.7822, allocations: 5 kB / 0.7258 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.7838, allocations: 0.9901 MB / 0.7268 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/0.7859, allocations: 365.8 kB / 0.7272 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3115/1.097, allocations: 36.6 MB / 0.7629 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/1.099, allocations: 2.635 MB / 0.7655 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003082/1.103, allocations: 1.696 MB / 0.7671 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.104, allocations: 1.405 MB / 0.7685 GB, free: 125 MB / 0.5606 GB Notification: Performance of SimCode: time 1.182e-06/1.104, allocations: 0 / 0.7685 GB, free: 125 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09429/1.198, allocations: 57.93 MB / 0.8251 GB, free: 67.53 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.79/25.99, allocations: 10.8 kB / 0.8251 GB, free: 67.52 MB / 0.5606 GB " [Timeout remaining time 634] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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: 29.283200493999175]