Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008351/0.0008351, allocations: 88.27 kB / 20.77 MB, free: 3.754 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008208/0.0008208, allocations: 164.9 kB / 24.06 MB, free: 472 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8789/0.8789, allocations: 177 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2398/0.2398, allocations: 34.25 MB / 295 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 442.4 MB, free: 1.5 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.821e-05/1.973e-05, allocations: 2.281 kB / 442.4 MB, free: 1.496 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1709/0.1709, allocations: 7.93 MB / 450.3 MB, free: 39.68 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003705/0.1746, allocations: 3.367 MB / 453.7 MB, free: 37.79 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004508/0.1751, allocations: 57.53 kB / 453.7 MB, free: 37.77 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.1765, allocations: 1.709 MB / 455.4 MB, free: 37.05 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001528/0.1781, allocations: 1.633 MB / 457.1 MB, free: 36.31 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.1787, allocations: 0.6049 MB / 457.7 MB, free: 36.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.1814, allocations: 3.959 MB / 461.6 MB, free: 34.57 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.1827, allocations: 2.078 MB / 463.7 MB, free: 33.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.1839, allocations: 1.683 MB / 465.4 MB, free: 32.92 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.185, allocations: 1.694 MB / 467.1 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002092/0.1852, allocations: 225.4 kB / 467.3 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008814/0.1861, allocations: 1.049 MB / 468.4 MB, free: 32.28 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000612/0.1867, allocations: 1.514 MB / 469.9 MB, free: 31.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005654/0.1873, allocations: 0.9704 MB / 470.8 MB, free: 31.17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002788/0.1901, allocations: 5.628 MB / 476.5 MB, free: 29.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1901, allocations: 7.219 kB / 476.5 MB, free: 29.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1901, allocations: 0 / 476.5 MB, free: 29.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.6e-05/0.1901, allocations: 0 / 476.5 MB, free: 29.26 MB / 410.7 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.00449/0.1946, allocations: 3.833 MB / 480.3 MB, free: 27.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.1947, allocations: 8.969 kB / 480.3 MB, free: 27.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000479/0.1952, allocations: 0.5422 MB / 480.9 MB, free: 26.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03898/0.2341, allocations: 7.157 MB / 488 MB, free: 26.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004565/0.2387, allocations: 2.194 MB / 490.2 MB, free: 25.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.313e-05/0.2388, allocations: 161.2 kB / 490.4 MB, free: 25.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003479/0.2391, allocations: 221.6 kB / 490.6 MB, free: 25.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008416/0.2476, allocations: 7.4 MB / 498 MB, free: 21.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.574e-05/0.2476, allocations: 44.16 kB / 498 MB, free: 21.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/0.2478, allocations: 109.6 kB / 498.1 MB, free: 21.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001567/0.2494, allocations: 1.539 MB / 499.7 MB, free: 20.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006577/0.256, allocations: 6.168 MB / 0.494 GB, free: 16.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01733/0.2733, allocations: 28.99 MB / 0.5223 GB, free: 2.578 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.2758, allocations: 1.689 MB / 0.5239 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008143/0.2767, allocations: 0.9964 MB / 0.5249 GB, free: 15.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.2768, allocations: 92.23 kB / 0.525 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.2768, allocations: 43.06 kB / 0.525 GB, free: 15.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.337e-06/0.2768, allocations: 0 / 0.525 GB, free: 15.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.01882/0.2957, allocations: 11.31 MB / 0.5361 GB, free: 4.324 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.2957, allocations: 196.5 kB / 0.5363 GB, free: 4.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/0.2993, allocations: 3.995 MB / 0.5402 GB, free: 96 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.762e-05/0.2994, allocations: 49.69 kB / 0.5402 GB, free: 40 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.3005, allocations: 2.632 MB / 0.5428 GB, free: 13.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.3008, allocations: 0.5506 MB / 0.5433 GB, free: 12.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008391/0.3017, allocations: 1.029 MB / 0.5443 GB, free: 11.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.3019, allocations: 305.1 kB / 0.5446 GB, free: 11.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.3034, allocations: 1.63 MB / 0.5462 GB, free: 9.848 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003059/0.3065, allocations: 5.012 MB / 0.5511 GB, free: 3.137 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005095/0.3115, allocations: 7.184 MB / 0.5581 GB, free: 10.29 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.574e-05/0.3116, allocations: 32 kB / 0.5582 GB, free: 10.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.006555/0.3181, allocations: 6.572 MB / 0.5646 GB, free: 3.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.995e-05/0.3182, allocations: 56 kB / 0.5646 GB, free: 3.625 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.55e-05/0.3183, allocations: 120 kB / 0.5647 GB, free: 3.508 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005664/0.3188, allocations: 397.1 kB / 0.5651 GB, free: 3.117 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.3207, allocations: 1.189 MB / 0.5663 GB, free: 1.926 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/0.3232, allocations: 3.241 MB / 0.5695 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.3254, allocations: 315.5 kB / 0.5698 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.3256, allocations: 325.7 kB / 0.5701 GB, free: 13.95 MB / 490.7 MB 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.001689/0.3273, allocations: 1.701 MB / 0.5717 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002895/0.3276, allocations: 317.8 kB / 0.572 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.3294, allocations: 1.717 MB / 0.5737 GB, free: 10.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.3295, allocations: 15.98 kB / 0.5737 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3295, allocations: 4.109 kB / 0.5737 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3295, allocations: 11.92 kB / 0.5737 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005435/0.3349, allocations: 5.01 MB / 0.5786 GB, free: 5.086 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3349, allocations: 0 / 0.5786 GB, free: 5.086 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.3354, allocations: 191.7 kB / 0.5788 GB, free: 4.898 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003692/0.3358, allocations: 232.6 kB / 0.579 GB, free: 4.668 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.272e-05/0.3358, allocations: 25.88 kB / 0.5791 GB, free: 4.645 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.3377, allocations: 2.621 MB / 0.5816 GB, free: 1.91 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3377, allocations: 3.938 kB / 0.5816 GB, free: 1.906 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003288/0.341, allocations: 3.74 MB / 0.5853 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.3413, allocations: 317.7 kB / 0.5856 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.3415, allocations: 20 kB / 0.5856 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006342/0.3421, allocations: 95.86 kB / 0.5857 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.3422, allocations: 72.45 kB / 0.5858 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/0.3423, allocations: 40.86 kB / 0.5858 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002066/0.3443, allocations: 2.405 MB / 0.5881 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3443, allocations: 0 / 0.5881 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002288/0.3466, allocations: 0.8514 MB / 0.589 GB, free: 10.34 MB / 0.4948 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.003687/0.3503, allocations: 4.38 MB / 0.5933 GB, free: 5.934 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003505/0.3538, allocations: 3.783 MB / 0.5969 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3538, allocations: 0 / 0.5969 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009901/0.3548, allocations: 0.9977 MB / 0.5979 GB, free: 1.152 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.356, allocations: 366.5 kB / 0.5983 GB, free: 0.8047 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0321/0.3881, allocations: 36.98 MB / 0.6344 GB, free: 6.785 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.39, allocations: 2.084 MB / 0.6364 GB, free: 4.668 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002242/0.3922, allocations: 1.702 MB / 0.6381 GB, free: 2.961 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.3934, allocations: 1.418 MB / 0.6395 GB, free: 1.543 MB / 0.5417 GB Notification: Performance of SimCode: time 1.002e-06/0.3934, allocations: 0 / 0.6395 GB, free: 1.543 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2417/0.6352, allocations: 55.25 MB / 0.6934 GB, free: 154.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.804/10.44, allocations: 12.84 kB / 0.6934 GB, free: 154.4 MB / 0.5417 GB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.508434769697487]