Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008467/0.0008466, allocations: 91.45 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00508/0.00508, allocations: 173 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.023/2.023, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002655/0.0002655, allocations: 11.98 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.4961, allocations: 142.4 MB / 0.9552 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.002809/0.499, allocations: 3.697 MB / 0.9588 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001275/0.4991, allocations: 153.2 kB / 0.9589 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.174e-05/0.4991, allocations: 3.938 kB / 0.9589 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.137e-05/0.4992, allocations: 1.719 kB / 0.9589 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.445e-05/0.4993, allocations: 9.172 kB / 0.9589 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.4995, allocations: 76.14 kB / 0.959 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.509e-05/0.4996, allocations: 68.95 kB / 0.9591 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.285e-05/0.4996, allocations: 1.281 kB / 0.9591 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.064e-05/0.4996, allocations: 13.78 kB / 0.9591 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.168e-05/0.4997, allocations: 14.69 kB / 0.9591 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.087e-06/0.4997, allocations: 1.281 kB / 0.9591 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.4999, allocations: 69.23 kB / 0.9592 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.513e-05/0.4999, allocations: 15.38 kB / 0.9592 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.432e-05/0.4999, allocations: 33.83 kB / 0.9592 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.431e-05/0.5, allocations: 50.25 kB / 0.9593 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.5001, allocations: 1.438 kB / 0.9593 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.664e-06/0.5001, allocations: 4 kB / 0.9593 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.186e-06/0.5001, allocations: 3.938 kB / 0.9593 GB, free: 4.277 MB / 0.7169 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.0002136/0.5003, allocations: 328.5 kB / 0.9596 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.5003, allocations: 8.531 kB / 0.9596 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.49e-05/0.5004, allocations: 39.83 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.208e-05/0.5004, allocations: 3.094 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.153e-05/0.5004, allocations: 161.5 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.5005, allocations: 27.27 kB / 0.9598 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-06/0.5005, allocations: 9.156 kB / 0.9598 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.071e-05/0.5006, allocations: 43.28 kB / 0.9599 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.5006, allocations: 0 / 0.9599 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.5006, allocations: 1.312 kB / 0.9599 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.5006, allocations: 0 / 0.9599 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.653e-05/0.5007, allocations: 18.23 kB / 0.9599 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002774/0.501, allocations: 332.9 kB / 0.9602 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.413e-05/0.501, allocations: 19.95 kB / 0.9602 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.979e-06/0.501, allocations: 6.484 kB / 0.9602 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.435e-05/0.5011, allocations: 91.31 kB / 0.9603 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.081e-05/0.5011, allocations: 30.56 kB / 0.9603 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.5011, allocations: 0 / 0.9603 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001003/0.5012, allocations: 40.27 kB / 0.9604 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.499e-05/0.5012, allocations: 51.41 kB / 0.9604 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.615e-05/0.5013, allocations: 108.3 kB / 0.9605 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.5013, allocations: 25.7 kB / 0.9605 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.155e-05/0.5013, allocations: 85.73 kB / 0.9606 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.198e-06/0.5013, allocations: 1.719 kB / 0.9606 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.5013, allocations: 17.7 kB / 0.9606 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.03e-05/0.5014, allocations: 316.5 kB / 0.961 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.126e-05/0.5014, allocations: 7.156 kB / 0.961 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.405e-05/0.5014, allocations: 13.56 kB / 0.961 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.394e-05/0.5014, allocations: 31.61 kB / 0.961 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.5014, allocations: 0 / 0.961 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.352e-05/0.5015, allocations: 42.95 kB / 0.961 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.5015, allocations: 8.047 kB / 0.961 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.5015, allocations: 2.031 kB / 0.9611 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.5015, allocations: 7.875 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.364e-05/0.5016, allocations: 5.031 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.5016, allocations: 9.891 kB / 0.9611 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.588e-05/0.5016, allocations: 3.938 kB / 0.9611 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-06/0.5016, allocations: 1.688 kB / 0.9611 GB, free: 2.258 MB / 0.7169 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 3.809e-05/0.5017, allocations: 115.3 kB / 0.9612 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.5017, allocations: 5.969 kB / 0.9612 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.5018, allocations: 117.2 kB / 0.9613 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/0.5018, allocations: 184.5 kB / 0.9615 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/0.5018, allocations: 177.4 kB / 0.9617 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.5018, allocations: 185 kB / 0.9618 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.5019, allocations: 412.3 kB / 0.9622 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.5019, allocations: 105 kB / 0.9623 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.121e-05/0.502, allocations: 110.4 kB / 0.9624 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.721e-05/0.502, allocations: 181.7 kB / 0.9626 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.502, allocations: 185.8 kB / 0.9628 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-05/0.502, allocations: 176.3 kB / 0.9629 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.616e-05/0.502, allocations: 185.7 kB / 0.9631 GB, free: 36 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.5022, allocations: 308.4 kB / 0.9634 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.5023, allocations: 187.5 kB / 0.9636 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/0.5023, allocations: 177.7 kB / 0.9638 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.5025, allocations: 108 kB / 0.9639 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.5025, allocations: 181.7 kB / 0.964 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.5026, allocations: 110.5 kB / 0.9641 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.464e-05/0.5026, allocations: 78.97 kB / 0.9642 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5026, allocations: 1.312 kB / 0.9642 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002146/0.5028, allocations: 23.41 kB / 0.9642 GB, free: 14.84 MB / 0.7325 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.0004047/0.5032, allocations: 0.8259 MB / 0.9651 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 4.747e-05/0.5033, allocations: 14.02 kB / 0.9651 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5033, allocations: 0 / 0.9651 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.396e-06/0.5033, allocations: 5.062 kB / 0.9651 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.5037, allocations: 0.5294 MB / 0.9656 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000792/0.5045, allocations: 1.335 MB / 0.9669 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.5047, allocations: 0.6758 MB / 0.9675 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.506e-05/0.5047, allocations: 9.5 kB / 0.9676 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.747e-05/0.5047, allocations: 12.8 kB / 0.9676 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.5048, allocations: 0 / 0.9676 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.574/2.079, allocations: 1.3 MB / 0.9688 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/2.079, allocations: 206 kB / 0.969 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/4.157, allocations: 3.938 kB / 0.969 GB, free: 10.52 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches