Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_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.001531/0.001531, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 437.1 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 64.05 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6009/0.6025, allocations: 151.6 MB / 1.017 GB, free: 2.613 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005982/0.6085, allocations: 3.729 MB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002237/0.6087, allocations: 147.5 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.38e-05/0.6088, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.6089, allocations: 11.92 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.363e-05/0.609, allocations: 15.92 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.6094, allocations: 78.88 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.904e-05/0.6095, allocations: 31.86 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.649e-05/0.6096, allocations: 7.984 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.156e-05/0.6096, allocations: 15.97 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.487e-05/0.6097, allocations: 19.92 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.6097, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005448/0.6102, allocations: 187.4 kB / 1.022 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.876e-05/0.6103, allocations: 7.984 kB / 1.022 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.6103, allocations: 15.92 kB / 1.022 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.6105, allocations: 42.22 kB / 1.022 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.6105, allocations: 0 / 1.022 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.372e-06/0.6105, allocations: 0 / 1.022 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.6105, allocations: 0 / 1.022 GB, free: 14.29 MB / 0.7794 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.000336/0.6108, allocations: 331.5 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.6109, allocations: 8.031 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.202e-05/0.6109, allocations: 42.69 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.6109, allocations: 0.9375 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.876e-05/0.611, allocations: 172.2 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.278e-05/0.6111, allocations: 30.27 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.6111, allocations: 8.109 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.6113, allocations: 45.69 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.6113, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.6113, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.6113, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.559e-05/0.6114, allocations: 15.98 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003909/0.6118, allocations: 338 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.859e-05/0.6118, allocations: 14.58 kB / 1.023 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.778e-05/0.6118, allocations: 12.92 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-05/0.6119, allocations: 81.11 kB / 1.023 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.612, allocations: 38.55 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.612, allocations: 3.938 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.000126/0.6121, allocations: 37.64 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.6121, allocations: 51.41 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.747e-05/0.6122, allocations: 101.8 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.6122, allocations: 29.7 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/0.6123, allocations: 84.05 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.355e-06/0.6123, allocations: 7.938 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.6124, allocations: 21.75 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.6125, allocations: 318.8 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.6125, allocations: 4 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.669e-05/0.6125, allocations: 17.72 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.532e-05/0.6126, allocations: 25.64 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.6126, allocations: 4 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.282e-05/0.6127, allocations: 41.7 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6127, allocations: 4 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.6127, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.6127, allocations: 7.984 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.849e-05/0.6128, allocations: 7.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.6128, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.686e-05/0.6128, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.6128, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 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 7.302e-05/0.6129, allocations: 113.8 kB / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.6129, allocations: 0 / 1.024 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.613, allocations: 124.9 kB / 1.024 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.626e-05/0.6131, allocations: 184.2 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-05/0.6132, allocations: 176.3 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.773e-05/0.6133, allocations: 184.2 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.6135, allocations: 413.2 kB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-05/0.6135, allocations: 109 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.674e-05/0.6136, allocations: 105.2 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.827e-05/0.6137, allocations: 180.3 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.531e-05/0.6137, allocations: 180.2 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.454e-05/0.6138, allocations: 180.3 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.35e-05/0.6139, allocations: 180.3 kB / 1.025 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.614, allocations: 311.7 kB / 1.026 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.6141, allocations: 189.9 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.6142, allocations: 184.3 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.6143, allocations: 113 kB / 1.026 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.694e-05/0.6144, allocations: 180.2 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.261e-05/0.6145, allocations: 101 kB / 1.026 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.6145, allocations: 91.27 kB / 1.027 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6145, allocations: 0 / 1.027 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002442/0.6148, allocations: 19.88 kB / 1.027 GB, free: 8.66 MB / 0.7794 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.0004896/0.6153, allocations: 0.8321 MB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.139e-05/0.6153, allocations: 11.98 kB / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6154, allocations: 0 / 1.027 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.056e-06/0.6154, allocations: 8.062 kB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.6157, allocations: 462.8 kB / 1.028 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009422/0.6167, allocations: 1.317 MB / 1.029 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.6169, allocations: 0.6729 MB / 1.03 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.143e-05/0.617, allocations: 11.88 kB / 1.03 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.977e-05/0.617, allocations: 7.438 kB / 1.03 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.617, allocations: 0 / 1.03 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0172/0.6342, allocations: 1.505 MB / 1.031 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.951, allocations: 11.75 kB / 1.031 GB, free: 3.82 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches