Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterProperties.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: translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007851/0.007851, allocations: 99.64 kB / 15.73 MB, free: 6.031 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.001659/0.001659, allocations: 189.7 kB / 16.67 MB, free: 5.965 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.875/2.875, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 68.12 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3404, allocations: 157.4 MB / 1.208 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.008098/0.3486, allocations: 4.727 MB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003939/0.3526, allocations: 2.698 MB / 1.215 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.3528, allocations: 0 / 1.215 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000379/0.3532, allocations: 47.67 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003676/0.3537, allocations: 103.3 kB / 1.215 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.3551, allocations: 0.4921 MB / 1.216 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.3554, allocations: 235.9 kB / 1.216 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/0.3555, allocations: 13.56 kB / 1.216 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.3557, allocations: 115.6 kB / 1.216 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.3558, allocations: 95.59 kB / 1.216 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.3558, allocations: 8 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006527/0.3565, allocations: 371.3 kB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.645e-05/0.3566, allocations: 39.83 kB / 1.216 GB, free: 0.7109 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.994e-05/0.3567, allocations: 83.64 kB / 1.217 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005215/0.3572, allocations: 355.1 kB / 1.217 GB, free: 288 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3572, allocations: 0 / 1.217 GB, free: 288 kB / 0.9669 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3572, allocations: 0 / 1.217 GB, free: 288 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.3573, allocations: 0 / 1.217 GB, free: 288 kB / 0.9669 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.001046/0.3583, allocations: 0.5032 MB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.3584, allocations: 8.031 kB / 1.217 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.3586, allocations: 24.75 kB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004747/0.3591, allocations: 216 kB / 1.218 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.3591, allocations: 12.7 kB / 1.218 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.3591, allocations: 20.31 kB / 1.218 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.3596, allocations: 248.2 kB / 1.218 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3596, allocations: 0 / 1.218 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.3597, allocations: 11.98 kB / 1.218 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.3597, allocations: 11.94 kB / 1.218 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.3602, allocations: 432 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.3614, allocations: 0.9449 MB / 1.219 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002636/0.3617, allocations: 159 kB / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3618, allocations: 60.89 kB / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/0.3632, allocations: 1.825 MB / 1.221 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.3633, allocations: 42.55 kB / 1.221 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3633, allocations: 0 / 1.221 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0003386/0.3636, allocations: 139.4 kB / 1.221 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.3637, allocations: 59.34 kB / 1.221 GB, free: 11 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.3639, allocations: 167.3 kB / 1.222 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3639, allocations: 37.62 kB / 1.222 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.364, allocations: 143.8 kB / 1.222 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.3641, allocations: 51.2 kB / 1.222 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.3641, allocations: 53.61 kB / 1.222 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3643, allocations: 326.8 kB / 1.222 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.517e-05/0.3643, allocations: 31.98 kB / 1.222 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.3645, allocations: 143.5 kB / 1.222 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3647, allocations: 197.5 kB / 1.223 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3648, allocations: 0 / 1.223 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003321/0.3651, allocations: 219.8 kB / 1.223 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3651, allocations: 8 kB / 1.223 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3651, allocations: 0 / 1.223 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3652, allocations: 8 kB / 1.223 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.3653, allocations: 55.86 kB / 1.223 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.3654, allocations: 8.469 kB / 1.223 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.3655, allocations: 31.69 kB / 1.223 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.3655, allocations: 19.92 kB / 1.223 GB, free: 9.387 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.000113/0.3656, allocations: 133.8 kB / 1.223 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.957e-05/0.3657, allocations: 15.81 kB / 1.223 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003188/0.366, allocations: 151 kB / 1.223 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.366, allocations: 3.938 kB / 1.223 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3661, allocations: 4 kB / 1.223 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3661, allocations: 3.984 kB / 1.223 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.3663, allocations: 221.5 kB / 1.223 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3663, allocations: 0 / 1.223 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.872e-05/0.3664, allocations: 27.92 kB / 1.223 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3664, allocations: 0 / 1.223 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3665, allocations: 7.938 kB / 1.223 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.3665, allocations: 7.938 kB / 1.223 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3665, allocations: 0 / 1.223 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.3668, allocations: 219.3 kB / 1.224 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.3669, allocations: 105 kB / 1.224 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.3669, allocations: 4 kB / 1.224 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.3671, allocations: 15.92 kB / 1.224 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.3671, allocations: 11.98 kB / 1.224 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.3672, allocations: 11.98 kB / 1.224 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.438e-05/0.3673, allocations: 120.9 kB / 1.224 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 3.938 kB / 1.224 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004034/0.3677, allocations: 83.84 kB / 1.224 GB, free: 8.16 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0003803/0.3681, allocations: 179.2 kB / 1.224 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.3684, allocations: 123.1 kB / 1.224 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.3684, allocations: 4.312 kB / 1.224 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.136e-05/0.3685, allocations: 47.92 kB / 1.224 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/0.3689, allocations: 55.88 kB / 1.224 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007852/0.3697, allocations: 338.8 kB / 1.225 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.3701, allocations: 0.7128 MB / 1.225 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.3702, allocations: 45.81 kB / 1.225 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.548e-05/0.3703, allocations: 27.44 kB / 1.225 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3703, allocations: 0 / 1.225 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of Templates: time 0.007383/0.3777, allocations: 3.469 MB / 1.229 GB, free: 3.156 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_latest_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches