Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001403/0.001403, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001773/0.001773, allocations: 215.5 kB / 22.25 MB, free: 5.262 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.83/2.83, allocations: 476 MB / 0.7699 GB, free: 4.758 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_11_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",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.002067/0.002067, allocations: 67.02 kB / 1.117 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3349, allocations: 169.9 MB / 1.283 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006491/0.3414, allocations: 3.911 MB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002409/0.3417, allocations: 147.5 kB / 1.286 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.217e-05/0.3417, allocations: 4 kB / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.3418, allocations: 0 / 1.286 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.514e-05/0.3419, allocations: 15.92 kB / 1.287 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.3423, allocations: 83.69 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.3424, allocations: 39.84 kB / 1.287 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.3425, allocations: 0 / 1.287 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.134e-05/0.3425, allocations: 11.98 kB / 1.287 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.055e-05/0.3426, allocations: 23.91 kB / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.3426, allocations: 3.938 kB / 1.287 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.3428, allocations: 55.81 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.3428, allocations: 15.92 kB / 1.287 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.412e-05/0.3429, allocations: 4 kB / 1.287 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.343, allocations: 57.56 kB / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.343, allocations: 0 / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.392e-06/0.343, allocations: 0 / 1.287 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.343, allocations: 0 / 1.287 GB, free: 8.191 MB / 0.9825 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.0004036/0.3434, allocations: 266.3 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3435, allocations: 12.03 kB / 1.287 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.308e-05/0.3435, allocations: 38.73 kB / 1.287 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.3436, allocations: 4.938 kB / 1.287 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3437, allocations: 106.5 kB / 1.287 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.938e-05/0.3437, allocations: 51.97 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.3438, allocations: 8.125 kB / 1.287 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.3439, allocations: 71.38 kB / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.3439, allocations: 0 / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.3439, allocations: 0 / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.3439, allocations: 4 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.959e-05/0.344, allocations: 15.98 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.3444, allocations: 224 kB / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.964e-05/0.3445, allocations: 26.52 kB / 1.288 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.3445, allocations: 8.844 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.493e-05/0.3446, allocations: 4.062 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.3446, allocations: 38.55 kB / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3446, allocations: 0 / 1.288 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.3448, allocations: 33.64 kB / 1.288 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.3448, allocations: 51.41 kB / 1.288 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.873e-05/0.3449, allocations: 117.9 kB / 1.288 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.3449, allocations: 25.7 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.345, allocations: 92.09 kB / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.04e-06/0.345, allocations: 0 / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.345, allocations: 13.72 kB / 1.288 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3452, allocations: 318.8 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.795e-05/0.3452, allocations: 8 kB / 1.288 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.15e-05/0.3452, allocations: 13.72 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.6e-05/0.3452, allocations: 17.72 kB / 1.288 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3452, allocations: 19.86 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.971e-05/0.3453, allocations: 41.7 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3453, allocations: 4 kB / 1.288 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3453, allocations: 0 / 1.288 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3454, allocations: 4 kB / 1.288 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.687e-05/0.3454, allocations: 11.92 kB / 1.288 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.3454, allocations: 0 / 1.288 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.074e-05/0.3454, allocations: 7.891 kB / 1.288 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.3454, allocations: 4 kB / 1.288 GB, free: 6.34 MB / 0.9825 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 8.661e-05/0.3455, allocations: 113.8 kB / 1.288 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.3456, allocations: 4 kB / 1.288 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.3457, allocations: 121 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.656e-05/0.3458, allocations: 180.2 kB / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.71e-05/0.3458, allocations: 176.3 kB / 1.289 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.548e-05/0.3459, allocations: 180.3 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.3462, allocations: 384.2 kB / 1.289 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.876e-05/0.3462, allocations: 105 kB / 1.29 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/0.3463, allocations: 104.9 kB / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.79e-05/0.3463, allocations: 180.2 kB / 1.29 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-05/0.3464, allocations: 184.3 kB / 1.29 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-05/0.3465, allocations: 184.2 kB / 1.29 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.451e-05/0.3466, allocations: 184.3 kB / 1.29 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.3467, allocations: 307.7 kB / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.861e-05/0.3468, allocations: 105 kB / 1.291 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.3469, allocations: 184.2 kB / 1.291 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.347, allocations: 109 kB / 1.291 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.393e-05/0.3471, allocations: 180.2 kB / 1.291 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.3472, allocations: 101 kB / 1.291 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.578e-05/0.3472, allocations: 87.28 kB / 1.291 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3472, allocations: 0 / 1.291 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000258/0.3475, allocations: 27.86 kB / 1.291 GB, free: 3.012 MB / 0.9825 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.0005155/0.348, allocations: 0.8242 MB / 1.292 GB, free: 2.156 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.534e-05/0.3481, allocations: 7.984 kB / 1.292 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3481, allocations: 0 / 1.292 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.457e-06/0.3481, allocations: 7.938 kB / 1.292 GB, free: 2.141 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005132/0.3486, allocations: 463.6 kB / 1.293 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.3498, allocations: 1.325 MB / 1.294 GB, free: 276 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.735e-05/0.3498, allocations: 63.34 kB / 1.294 GB, free: 192 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.32e-05/0.3499, allocations: 4 kB / 1.294 GB, free: 188 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.3499, allocations: 7.438 kB / 1.294 GB, free: 180 kB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3499, allocations: 0 / 1.294 GB, free: 180 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.3808, allocations: 2.04 MB / 1.296 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.72, allocations: 8.078 kB / 1.296 GB, free: 14.27 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_11_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.37595246685669]