Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_11_Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_11_Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.007408/0.007408, allocations: 99.19 kB / 15.73 MB, free: 6.492 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.002132/0.002132, allocations: 198.6 kB / 16.68 MB, free: 6.375 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.848/2.848, allocations: 469.8 MB / 0.7425 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.89 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2712, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005286/0.2765, allocations: 3.727 MB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002013/0.2767, allocations: 159.5 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.757e-05/0.2767, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.086e-05/0.2768, allocations: 0 / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.456e-05/0.2769, allocations: 15.91 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.2772, allocations: 87.69 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.608e-05/0.2773, allocations: 23.92 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.2773, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.25e-05/0.2774, allocations: 27.84 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.372e-05/0.2775, allocations: 4 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.2775, allocations: 0 / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.278, allocations: 203.4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.248e-05/0.2781, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.2781, allocations: 19.84 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.2782, allocations: 39.91 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2782, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2782, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.2782, allocations: 0 / 1.224 GB, free: 9.98 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.0003812/0.2786, allocations: 331.5 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2787, allocations: 15.97 kB / 1.225 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.2787, allocations: 30.75 kB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.2788, allocations: 4.938 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.2789, allocations: 176.3 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.098e-05/0.279, allocations: 38.23 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.279, allocations: 4.125 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.2791, allocations: 41.69 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.2791, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.2791, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.2791, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.121e-05/0.2792, allocations: 19.98 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000419/0.2796, allocations: 334 kB / 1.225 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 3.993e-05/0.2797, allocations: 22.52 kB / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.389e-05/0.2797, allocations: 4.859 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.503e-05/0.2798, allocations: 81.17 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.2798, allocations: 38.56 kB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2798, allocations: 0 / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001328/0.28, allocations: 41.62 kB / 1.225 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.28, allocations: 51.41 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.683e-05/0.2801, allocations: 105.8 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.2801, allocations: 25.7 kB / 1.226 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.2802, allocations: 88.03 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.293e-06/0.2802, allocations: 7.953 kB / 1.226 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.613e-05/0.2803, allocations: 17.84 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2804, allocations: 318.8 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.2804, allocations: 3.984 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.532e-05/0.2804, allocations: 13.72 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.744e-05/0.2805, allocations: 21.72 kB / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2805, allocations: 0 / 1.226 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.486e-05/0.2806, allocations: 53.62 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.2806, allocations: 8 kB / 1.226 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2806, allocations: 0 / 1.226 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.2806, allocations: 0 / 1.226 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.124e-05/0.2807, allocations: 7.984 kB / 1.226 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2807, allocations: 3.984 kB / 1.226 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.35e-05/0.2807, allocations: 7.938 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.2807, allocations: 7.875 kB / 1.226 GB, free: 7.809 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.286e-05/0.2808, allocations: 120.3 kB / 1.226 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.2809, allocations: 4.062 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.281, allocations: 117 kB / 1.226 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.339e-05/0.2811, allocations: 180.2 kB / 1.227 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.255e-05/0.2811, allocations: 176.3 kB / 1.227 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.81e-05/0.2812, allocations: 184.3 kB / 1.227 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.2815, allocations: 409.1 kB / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.716e-05/0.2815, allocations: 105 kB / 1.227 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.592e-05/0.2816, allocations: 112.9 kB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.946e-05/0.2817, allocations: 180.3 kB / 1.228 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-05/0.2818, allocations: 176.3 kB / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.862e-05/0.2819, allocations: 184.2 kB / 1.228 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.458e-05/0.2819, allocations: 180.5 kB / 1.228 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.2821, allocations: 319.6 kB / 1.229 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.371e-05/0.2822, allocations: 182.1 kB / 1.229 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.349e-05/0.2823, allocations: 184.2 kB / 1.229 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.2825, allocations: 109 kB / 1.229 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.544e-05/0.2826, allocations: 184.2 kB / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.2826, allocations: 105 kB / 1.229 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.418e-05/0.2827, allocations: 83.27 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2827, allocations: 0 / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002495/0.2829, allocations: 19.88 kB / 1.229 GB, free: 4.352 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.0005239/0.2835, allocations: 0.8321 MB / 1.23 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.069e-05/0.2835, allocations: 8 kB / 1.23 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2836, allocations: 4 kB / 1.23 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.2836, allocations: 128 / 1.23 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.284, allocations: 467.6 kB / 1.231 GB, free: 3.02 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2851, allocations: 1.309 MB / 1.232 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.2854, allocations: 0.6768 MB / 1.233 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.986e-05/0.2854, allocations: 11.88 kB / 1.233 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.2854, allocations: 11.38 kB / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.2854, allocations: 0 / 1.233 GB, free: 0.9023 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3068, allocations: 1.536 MB / 1.234 GB, free: 15.51 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.501/7.808, allocations: 6.672 kB / 1.234 GB, free: 15.5 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches