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.001722/0.001722, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002121/0.002121, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.526/1.526, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2313/0.2313, allocations: 46.91 MB / 357.1 MB, free: 10.32 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.00193/0.00193, allocations: 71.89 kB / 0.4909 GB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1183, allocations: 65.98 MB / 0.5554 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01119/0.1295, allocations: 8.959 MB / 0.5641 GB, free: 12.85 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007107/0.1366, allocations: 3.572 MB / 0.5676 GB, free: 9.262 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.1376, allocations: 55.75 kB / 0.5677 GB, free: 9.207 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003313/0.1409, allocations: 1.686 MB / 0.5693 GB, free: 7.516 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003614/0.1446, allocations: 1.58 MB / 0.5708 GB, free: 5.93 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.1458, allocations: 0.5575 MB / 0.5714 GB, free: 5.371 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004871/0.1506, allocations: 3.572 MB / 0.5749 GB, free: 1.793 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.1531, allocations: 1.872 MB / 0.5767 GB, free: 15.87 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.1548, allocations: 1.121 MB / 0.5778 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002215/0.157, allocations: 1.663 MB / 0.5794 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004678/0.1575, allocations: 220 kB / 0.5796 GB, free: 12.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001949/0.1594, allocations: 1.143 MB / 0.5807 GB, free: 11.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.1609, allocations: 1.441 MB / 0.5822 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001805/0.1627, allocations: 1.689 MB / 0.5838 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006674/0.1694, allocations: 5.572 MB / 0.5892 GB, free: 2.977 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1694, allocations: 4 kB / 0.5893 GB, free: 2.973 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1694, allocations: 0 / 0.5893 GB, free: 2.973 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.1695, allocations: 0 / 0.5893 GB, free: 2.973 MB / 446.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.2285/0.398, allocations: 3.876 MB / 0.593 GB, free: 32.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3981, allocations: 9.25 kB / 0.593 GB, free: 32.25 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001005/0.3991, allocations: 0.5434 MB / 0.5936 GB, free: 32.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09542/0.4945, allocations: 6.943 MB / 0.6004 GB, free: 31.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005703/0.5002, allocations: 2.405 MB / 0.6027 GB, free: 31.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.5004, allocations: 161.7 kB / 0.6029 GB, free: 31.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006827/0.501, allocations: 225.3 kB / 0.6031 GB, free: 31.46 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.5123, allocations: 7.339 MB / 0.6102 GB, free: 27.67 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-05/0.5124, allocations: 34.89 kB / 0.6103 GB, free: 27.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003189/0.5127, allocations: 112.7 kB / 0.6104 GB, free: 27.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002389/0.5151, allocations: 1.543 MB / 0.6119 GB, free: 26.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.5253, allocations: 6.187 MB / 0.6179 GB, free: 24.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02979/0.5551, allocations: 29.91 MB / 0.6471 GB, free: 9.398 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004904/0.56, allocations: 2.097 MB / 0.6492 GB, free: 7.148 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.5615, allocations: 0.9885 MB / 0.6501 GB, free: 6.148 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004197/0.562, allocations: 319.5 kB / 0.6505 GB, free: 5.781 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.181e-05/0.562, allocations: 49.53 kB / 0.6505 GB, free: 5.727 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 4.649e-06/0.562, allocations: 0 / 0.6505 GB, free: 5.727 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.037/0.599, allocations: 11.06 MB / 0.6613 GB, free: 10.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.5992, allocations: 204.6 kB / 0.6615 GB, free: 10.35 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006028/0.6052, allocations: 3.606 MB / 0.665 GB, free: 6.746 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/0.6054, allocations: 41.7 kB / 0.6651 GB, free: 6.699 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002436/0.6079, allocations: 2.671 MB / 0.6677 GB, free: 4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000781/0.6087, allocations: 0.5506 MB / 0.6682 GB, free: 3.445 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001591/0.6103, allocations: 1.052 MB / 0.6692 GB, free: 2.383 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6104, allocations: 301.1 kB / 0.6695 GB, free: 2.086 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/0.6132, allocations: 1.635 MB / 0.6711 GB, free: 456 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005887/0.6191, allocations: 4.965 MB / 0.676 GB, free: 9.793 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009446/0.6285, allocations: 7.174 MB / 0.683 GB, free: 0.957 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/0.6286, allocations: 36 kB / 0.683 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01304/0.6417, allocations: 6.574 MB / 0.6894 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.552e-05/0.6417, allocations: 56 kB / 0.6895 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001652/0.6419, allocations: 116 kB / 0.6896 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.6429, allocations: 401.3 kB / 0.69 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/0.6468, allocations: 1.185 MB / 0.6911 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004364/0.6512, allocations: 3.323 MB / 0.6944 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003814/0.655, allocations: 283.5 kB / 0.6946 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007986/0.6558, allocations: 324 kB / 0.695 GB, free: 4.543 MB / 0.4981 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.003139/0.6589, allocations: 1.707 MB / 0.6966 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007492/0.6597, allocations: 313.9 kB / 0.6969 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003688/0.6634, allocations: 1.714 MB / 0.6986 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-05/0.6634, allocations: 16 kB / 0.6986 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.6634, allocations: 0 / 0.6986 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.368e-05/0.6634, allocations: 15.91 kB / 0.6986 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.6742, allocations: 5.233 MB / 0.7037 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/0.6742, allocations: 3.938 kB / 0.7037 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.6752, allocations: 195.8 kB / 0.7039 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007712/0.676, allocations: 232.5 kB / 0.7041 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.6761, allocations: 24 kB / 0.7042 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00338/0.6795, allocations: 2.699 MB / 0.7068 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6795, allocations: 0 / 0.7068 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006027/0.6855, allocations: 3.729 MB / 0.7104 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009776/0.6865, allocations: 370.9 kB / 0.7108 GB, free: 4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004621/0.687, allocations: 20 kB / 0.7108 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.6882, allocations: 67.91 kB / 0.7109 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6884, allocations: 72.44 kB / 0.711 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.6885, allocations: 36 kB / 0.711 GB, free: 3.809 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003981/0.6925, allocations: 2.261 MB / 0.7132 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6925, allocations: 4.281 kB / 0.7132 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004221/0.6967, allocations: 0.7538 MB / 0.7139 GB, free: 0.8008 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 (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.006559/0.7033, allocations: 4.368 MB / 0.7182 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007127/0.7104, allocations: 3.799 MB / 0.7219 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.7104, allocations: 4 kB / 0.7219 GB, free: 8.602 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.7121, allocations: 0.9987 MB / 0.7229 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.7145, allocations: 361 kB / 0.7232 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06298/0.7775, allocations: 36.54 MB / 0.7589 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/0.7807, allocations: 2.639 MB / 0.7615 GB, free: 11 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003972/0.7846, allocations: 1.698 MB / 0.7632 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002254/0.7869, allocations: 1.405 MB / 0.7645 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of SimCode: time 1.643e-06/0.7869, allocations: 0 / 0.7645 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/0.8995, allocations: 53.73 MB / 0.817 GB, free: 2.449 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.46/24.36, allocations: 6.328 kB / 0.817 GB, free: 2.445 MB / 0.6231 GB " [Timeout remaining time 636] (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: 27.59052881100797]