Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_11_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_11_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.005271/0.005271, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001526/0.001526, allocations: 200.4 kB / 16.68 MB, free: 5.934 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.725/2.725, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 59.91 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6368/0.6388, allocations: 159.1 MB / 1.22 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005431/0.6442, allocations: 4.053 MB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002842/0.6471, allocations: 2.418 MB / 1.227 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.245e-05/0.6472, allocations: 4 kB / 1.227 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.6474, allocations: 55.66 kB / 1.227 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.6477, allocations: 103.3 kB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.6489, allocations: 0.5121 MB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.6492, allocations: 263.8 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.099e-05/0.6493, allocations: 13.56 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.6495, allocations: 115.6 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.6497, allocations: 99.59 kB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.6497, allocations: 8 kB / 1.228 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008941/0.6506, allocations: 451.3 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.6507, allocations: 39.89 kB / 1.228 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.6508, allocations: 87.58 kB / 1.228 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000685/0.6515, allocations: 410.5 kB / 1.229 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.6515, allocations: 0 / 1.229 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6515, allocations: 4 kB / 1.229 GB, free: 9.43 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.6515, allocations: 0 / 1.229 GB, free: 9.43 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007553/0.6523, allocations: 0.5064 MB / 1.229 GB, free: 8.871 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.6523, allocations: 12.03 kB / 1.229 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.482e-05/0.6524, allocations: 50.73 kB / 1.229 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00206/0.6545, allocations: 180.6 kB / 1.229 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.6547, allocations: 212.1 kB / 1.23 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.6548, allocations: 24.62 kB / 1.23 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.6548, allocations: 16.38 kB / 1.23 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006968/0.6555, allocations: 308.2 kB / 1.23 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.6556, allocations: 0 / 1.23 GB, free: 8.004 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.6556, allocations: 8 kB / 1.23 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.6556, allocations: 8 kB / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007956/0.6564, allocations: 260.1 kB / 1.23 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.6581, allocations: 1.396 MB / 1.232 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007292/0.6589, allocations: 190.5 kB / 1.232 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.6591, allocations: 82.94 kB / 1.232 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.6592, allocations: 0 / 1.232 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.6592, allocations: 42.55 kB / 1.232 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 1.132e-06/0.6592, allocations: 0 / 1.232 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18): time 0.0008585/0.6601, allocations: 249.4 kB / 1.232 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.6601, allocations: 51.41 kB / 1.232 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.6603, allocations: 154.2 kB / 1.232 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.6603, allocations: 25.7 kB / 1.232 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.6604, allocations: 136.2 kB / 1.232 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.6605, allocations: 63.47 kB / 1.232 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.676e-05/0.6606, allocations: 57.88 kB / 1.233 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.6607, allocations: 326.8 kB / 1.233 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.661, allocations: 64.36 kB / 1.233 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.6613, allocations: 142.3 kB / 1.233 GB, free: 4.562 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005429/0.6618, allocations: 219.5 kB / 1.233 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6618, allocations: 4 kB / 1.233 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006745/0.6625, allocations: 253.1 kB / 1.233 GB, free: 4.059 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.6625, allocations: 4 kB / 1.233 GB, free: 4.055 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.6626, allocations: 8.312 kB / 1.233 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.6626, allocations: 4 kB / 1.233 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.663, allocations: 59.89 kB / 1.234 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.663, allocations: 4 kB / 1.234 GB, free: 3.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.6632, allocations: 27.88 kB / 1.234 GB, free: 3.953 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.6632, allocations: 12 kB / 1.234 GB, free: 3.941 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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 0.0001288/0.6634, allocations: 138.4 kB / 1.234 GB, free: 3.797 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.6634, allocations: 19.91 kB / 1.234 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.6641, allocations: 232.5 kB / 1.234 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.6642, allocations: 7.938 kB / 1.234 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.6642, allocations: 0 / 1.234 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6642, allocations: 0 / 1.234 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003047/0.6645, allocations: 241.5 kB / 1.234 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.6645, allocations: 0 / 1.234 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003231/0.6648, allocations: 43.97 kB / 1.234 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.6648, allocations: 4 kB / 1.234 GB, free: 3.207 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.6649, allocations: 4 kB / 1.234 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.6649, allocations: 11.92 kB / 1.234 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.6649, allocations: 0 / 1.234 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006221/0.6655, allocations: 299.2 kB / 1.235 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.6656, allocations: 112.9 kB / 1.235 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.6657, allocations: 8 kB / 1.235 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.6659, allocations: 11.98 kB / 1.235 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.666, allocations: 15.98 kB / 1.235 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.666, allocations: 7.984 kB / 1.235 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.483e-05/0.6661, allocations: 117.7 kB / 1.235 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6661, allocations: 0 / 1.235 GB, free: 2.598 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003625/0.6665, allocations: 63.94 kB / 1.235 GB, free: 2.535 MB / 0.9512 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 (20): * Single equations (assignments): 20 * 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.0009999/0.6675, allocations: 0.8629 MB / 1.236 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005831/0.6681, allocations: 186.3 kB / 1.236 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6681, allocations: 0 / 1.236 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.6684, allocations: 87.89 kB / 1.236 GB, free: 1.383 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.6689, allocations: 67.75 kB / 1.236 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.6723, allocations: 2.171 MB / 1.238 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.6726, allocations: 0.7178 MB / 1.239 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002718/0.6729, allocations: 53.92 kB / 1.239 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.6731, allocations: 43.42 kB / 1.239 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of SimCode: time 2.71e-07/0.6731, allocations: 0 / 1.239 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02619/0.6993, allocations: 5.215 MB / 1.244 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.947/8.647, allocations: 8.562 kB / 1.244 GB, free: 9.137 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_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_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches