Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.001325/0.001325, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001565/0.001565, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.466/1.466, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.85/2.85, allocations: 0.5003 GB / 0.8026 GB, free: 6.695 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 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.001961/0.001961, allocations: 67.89 kB / 1.165 GB, free: 500 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8837/0.8856, allocations: 178.9 MB / 1.34 GB, free: 16.22 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004964/0.8906, allocations: 4.109 MB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001816/0.8908, allocations: 158.5 kB / 1.344 GB, free: 13.15 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.887e-05/0.8908, allocations: 0 / 1.344 GB, free: 13.15 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.8909, allocations: 9.828 kB / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.081e-05/0.891, allocations: 13.66 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.8913, allocations: 87.66 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.383e-05/0.8914, allocations: 35.73 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.051e-05/0.8914, allocations: 4.281 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.612e-05/0.8915, allocations: 14.59 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.442e-05/0.8916, allocations: 17.19 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.8916, allocations: 1.75 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.8918, allocations: 72.47 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.8918, allocations: 20.25 kB / 1.345 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.8918, allocations: 10.44 kB / 1.345 GB, free: 13.02 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.892, allocations: 64.92 kB / 1.345 GB, free: 13 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.892, allocations: 1.344 kB / 1.345 GB, free: 13 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.462e-06/0.892, allocations: 0 / 1.345 GB, free: 13 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.892, allocations: 0 / 1.345 GB, free: 13 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003217/0.8923, allocations: 337.5 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.8923, allocations: 9.469 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.209e-05/0.8924, allocations: 1.562 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.995e-05/0.8924, allocations: 35.45 kB / 1.345 GB, free: 12.6 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.8924, allocations: 3.688 kB / 1.345 GB, free: 12.6 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.272e-05/0.8925, allocations: 161.8 kB / 1.345 GB, free: 12.4 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.949e-05/0.8925, allocations: 32.38 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.8926, allocations: 5.312 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.8927, allocations: 52.55 kB / 1.345 GB, free: 12.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.8927, allocations: 3.938 kB / 1.345 GB, free: 12.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.8927, allocations: 1.375 kB / 1.345 GB, free: 12.32 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.8927, allocations: 0 / 1.345 GB, free: 12.32 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.312e-05/0.8927, allocations: 20.91 kB / 1.345 GB, free: 12.31 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000356/0.8931, allocations: 336.3 kB / 1.346 GB, free: 11.94 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.943e-05/0.8931, allocations: 20.45 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.368e-05/0.8932, allocations: 6.938 kB / 1.346 GB, free: 11.9 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-05/0.8932, allocations: 84.25 kB / 1.346 GB, free: 11.81 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.8932, allocations: 36.69 kB / 1.346 GB, free: 11.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.8932, allocations: 0 / 1.346 GB, free: 11.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001376/0.8934, allocations: 37.03 kB / 1.346 GB, free: 11.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.8934, allocations: 52.78 kB / 1.346 GB, free: 11.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.029e-05/0.8935, allocations: 97.56 kB / 1.346 GB, free: 11.57 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/0.8935, allocations: 29.7 kB / 1.346 GB, free: 11.54 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.78e-05/0.8935, allocations: 87.06 kB / 1.346 GB, free: 11.45 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.348e-06/0.8935, allocations: 5.312 kB / 1.346 GB, free: 11.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.8935, allocations: 19.33 kB / 1.346 GB, free: 11.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.8936, allocations: 319.9 kB / 1.346 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.8936, allocations: 7.203 kB / 1.346 GB, free: 11.1 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.951e-05/0.8936, allocations: 15.25 kB / 1.346 GB, free: 11.09 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.831e-05/0.8936, allocations: 21.91 kB / 1.346 GB, free: 11.07 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8936, allocations: 0 / 1.346 GB, free: 11.07 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.619e-05/0.8937, allocations: 57.39 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.8937, allocations: 5.5 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.8937, allocations: 6.125 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.8937, allocations: 0 / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.284e-05/0.8938, allocations: 6.109 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.8938, allocations: 2.219 kB / 1.346 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.8938, allocations: 3.938 kB / 1.346 GB, free: 11.01 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.8938, allocations: 6.688 kB / 1.346 GB, free: 11.01 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.69e-05/0.8939, allocations: 112.5 kB / 1.347 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.8939, allocations: 1.375 kB / 1.347 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.293e-05/0.894, allocations: 121.8 kB / 1.347 GB, free: 10.76 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/0.894, allocations: 179 kB / 1.347 GB, free: 10.58 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.709e-05/0.894, allocations: 182.2 kB / 1.347 GB, free: 10.4 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.387e-05/0.894, allocations: 178.4 kB / 1.347 GB, free: 10.22 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.8942, allocations: 423.2 kB / 1.348 GB, free: 9.754 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.8942, allocations: 103 kB / 1.348 GB, free: 9.648 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.493e-05/0.8942, allocations: 101.6 kB / 1.348 GB, free: 9.543 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-05/0.8942, allocations: 182.3 kB / 1.348 GB, free: 9.359 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.8942, allocations: 182.4 kB / 1.348 GB, free: 9.176 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.353e-05/0.8943, allocations: 184.8 kB / 1.348 GB, free: 8.988 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.071e-05/0.8943, allocations: 178.4 kB / 1.348 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.53e-05/0.8944, allocations: 309.9 kB / 1.349 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.8944, allocations: 184.7 kB / 1.349 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.838e-05/0.8944, allocations: 187.3 kB / 1.349 GB, free: 8.098 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.8946, allocations: 105.2 kB / 1.349 GB, free: 7.992 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.8946, allocations: 178.3 kB / 1.349 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.8946, allocations: 107 kB / 1.349 GB, free: 7.703 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.222e-05/0.8946, allocations: 89.17 kB / 1.35 GB, free: 7.621 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.8946, allocations: 1.375 kB / 1.35 GB, free: 7.621 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002509/0.8949, allocations: 16.97 kB / 1.35 GB, free: 7.617 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002905/0.8952, allocations: 0.8252 MB / 1.35 GB, free: 6.797 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 7.469e-05/0.8953, allocations: 11.03 kB / 1.35 GB, free: 6.793 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.8953, allocations: 0 / 1.35 GB, free: 6.793 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.383e-06/0.8953, allocations: 1.375 kB / 1.35 GB, free: 6.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.8956, allocations: 468 kB / 1.351 GB, free: 6.336 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007672/0.8964, allocations: 1.335 MB / 1.352 GB, free: 4.992 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.8965, allocations: 0.6743 MB / 1.353 GB, free: 4.297 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.807e-05/0.8965, allocations: 9.672 kB / 1.353 GB, free: 4.293 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.551e-05/0.8965, allocations: 12.81 kB / 1.353 GB, free: 4.281 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.8965, allocations: 0 / 1.353 GB, free: 4.281 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.9142, allocations: 1.526 MB / 1.354 GB, free: 3.891 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.814, allocations: 11.19 kB / 1.354 GB, free: 3.887 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.004313852987252]