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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_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.001198/0.001198, allocations: 108 kB / 15.61 MB, free: 152 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.001191/0.001191, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.743/2.743, allocations: 469.4 MB / 0.742 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 63.22 kB / 0.9082 GB, free: 34.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3329, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005213/0.3382, allocations: 4.02 MB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001919/0.3384, allocations: 155.5 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.568e-05/0.3384, allocations: 3.938 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.488e-05/0.3385, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.821e-05/0.3386, allocations: 19.92 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.3389, allocations: 79.69 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.676e-05/0.339, allocations: 35.91 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.3391, allocations: 3.984 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.798e-05/0.3391, allocations: 15.94 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.3392, allocations: 19.91 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.3392, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.3394, allocations: 55.81 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.06e-05/0.3394, allocations: 4 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.3395, allocations: 15.98 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.3396, allocations: 40.19 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3396, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.81e-07/0.3396, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3396, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 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.000349/0.34, allocations: 335.5 kB / 1.068 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.34, allocations: 8.031 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.158e-05/0.3401, allocations: 30.75 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.3401, allocations: 8.844 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.318e-05/0.3402, allocations: 164.4 kB / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.888e-05/0.3403, allocations: 30.2 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.3403, allocations: 8.125 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.3404, allocations: 49.66 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3404, allocations: 0 / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.3404, allocations: 0 / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.3405, allocations: 0 / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.809e-05/0.3405, allocations: 23.97 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003814/0.3409, allocations: 334 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.643e-05/0.341, allocations: 26.55 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.313e-05/0.341, allocations: 4.859 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.272e-05/0.3411, allocations: 85.17 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.3411, allocations: 30.56 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 2.375e-06/0.3411, allocations: 3.938 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.3412, allocations: 41.62 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.3413, allocations: 63.34 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.961e-05/0.3414, allocations: 93.86 kB / 1.069 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.3414, allocations: 25.7 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.117e-05/0.3414, allocations: 99.97 kB / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.44e-06/0.3414, allocations: 3.906 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.3415, allocations: 13.72 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3416, allocations: 322.9 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.643e-05/0.3416, allocations: 7.984 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.223e-05/0.3416, allocations: 13.72 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.159e-05/0.3417, allocations: 17.72 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3417, allocations: 0 / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.346e-05/0.3418, allocations: 49.62 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3418, allocations: 13.62 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.3418, allocations: 0 / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3418, allocations: 0 / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.671e-05/0.3419, allocations: 4 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.3419, allocations: 7.984 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.3419, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.3419, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 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 6.548e-05/0.342, allocations: 117.7 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.342, allocations: 0 / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.3421, allocations: 128.9 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-05/0.3422, allocations: 180.3 kB / 1.07 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-05/0.3422, allocations: 180.2 kB / 1.07 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.158e-05/0.3423, allocations: 180.3 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.3425, allocations: 409.1 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.428e-05/0.3426, allocations: 109 kB / 1.071 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.3426, allocations: 104.9 kB / 1.071 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.16e-05/0.3427, allocations: 180.2 kB / 1.071 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.853e-05/0.3427, allocations: 176.3 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.762e-05/0.3428, allocations: 188.2 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.563e-05/0.3429, allocations: 180.3 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.343, allocations: 315.6 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.3431, allocations: 178.1 kB / 1.072 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.3431, allocations: 184.2 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.3433, allocations: 108.9 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.3434, allocations: 188.2 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.3434, allocations: 109 kB / 1.073 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.96e-05/0.3435, allocations: 83.28 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3435, allocations: 0 / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002455/0.3437, allocations: 27.86 kB / 1.073 GB, free: 4.449 MB / 0.8262 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.0005029/0.3442, allocations: 0.8326 MB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.412e-05/0.3443, allocations: 4 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3443, allocations: 0 / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.804e-06/0.3443, allocations: 0 / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.3447, allocations: 467.8 kB / 1.074 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.3457, allocations: 1.317 MB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.3459, allocations: 0.6729 MB / 1.076 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.39e-05/0.346, allocations: 12.41 kB / 1.076 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.195e-05/0.346, allocations: 7.438 kB / 1.076 GB, free: 1 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.346, allocations: 0 / 1.076 GB, free: 1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.3637, allocations: 1.486 MB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/7.902, allocations: 5.906 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv","/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) Reference file matches