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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001211/0.001211, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001342/0.001342, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.459/2.459, allocations: 436.5 MB / 0.7104 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003078, allocations: 15.98 kB / 0.8707 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6176/0.618, allocations: 153.6 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005153/0.6232, allocations: 3.931 MB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002502/0.6257, allocations: 2.167 MB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.6258, allocations: 7.938 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.6261, allocations: 35.8 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.6263, allocations: 87.73 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.6274, allocations: 428.5 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.6277, allocations: 152.7 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.027e-05/0.6277, allocations: 9.562 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.6279, allocations: 99.73 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.628, allocations: 75.69 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.6281, allocations: 4 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006783/0.6288, allocations: 299.6 kB / 1.028 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.6288, allocations: 35.89 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.728e-05/0.6289, allocations: 53.58 kB / 1.028 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.6293, allocations: 217.5 kB / 1.028 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.6293, allocations: 0 / 1.028 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.302e-06/0.6293, allocations: 0 / 1.028 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.6293, allocations: 0 / 1.028 GB, free: 9.523 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006718/0.63, allocations: 475.1 kB / 1.029 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.63, allocations: 11.98 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.6302, allocations: 23.8 kB / 1.029 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.6304, allocations: 218.8 kB / 1.029 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.6304, allocations: 16.25 kB / 1.029 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.6304, allocations: 16 kB / 1.029 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.6308, allocations: 244 kB / 1.029 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.6308, allocations: 4 kB / 1.029 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.6309, allocations: 4 kB / 1.029 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.6309, allocations: 8 kB / 1.029 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004671/0.6314, allocations: 427.3 kB / 1.03 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.6325, allocations: 0.9878 MB / 1.031 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.6328, allocations: 160.6 kB / 1.031 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001335/0.6342, allocations: 1.844 MB / 1.032 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.6342, allocations: 34.56 kB / 1.033 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.6343, allocations: 3.938 kB / 1.033 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0003203/0.6346, allocations: 144.1 kB / 1.033 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.6346, allocations: 55.36 kB / 1.033 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.6348, allocations: 183.2 kB / 1.033 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.6348, allocations: 25.7 kB / 1.033 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.6349, allocations: 147.8 kB / 1.033 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.6349, allocations: 51.27 kB / 1.033 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-06/0.635, allocations: 4 kB / 1.033 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.6351, allocations: 322.8 kB / 1.033 GB, free: 3.543 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.415e-05/0.6351, allocations: 31.98 kB / 1.033 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.6353, allocations: 141.6 kB / 1.034 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.545e-05/0.6354, allocations: 55.92 kB / 1.034 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.6354, allocations: 0 / 1.034 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003143/0.6357, allocations: 209.2 kB / 1.034 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.6357, allocations: 9.25 kB / 1.034 GB, free: 3.051 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.6357, allocations: 4 kB / 1.034 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.6358, allocations: 4 kB / 1.034 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.636, allocations: 60.38 kB / 1.034 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.636, allocations: 11.98 kB / 1.034 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.6361, allocations: 31.64 kB / 1.034 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.6361, allocations: 12 kB / 1.034 GB, free: 2.93 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.6363, allocations: 133.7 kB / 1.034 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.6363, allocations: 15.81 kB / 1.034 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.6366, allocations: 169 kB / 1.034 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.6366, allocations: 7.984 kB / 1.034 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.6366, allocations: 4 kB / 1.034 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.6367, allocations: 0 / 1.034 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.6369, allocations: 217.5 kB / 1.034 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6369, allocations: 0 / 1.034 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.637, allocations: 27.98 kB / 1.035 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.637, allocations: 0 / 1.035 GB, free: 2.309 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.6371, allocations: 3.938 kB / 1.035 GB, free: 2.305 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.6371, allocations: 4 kB / 1.035 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6371, allocations: 0 / 1.035 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.6373, allocations: 231.2 kB / 1.035 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.6374, allocations: 120.8 kB / 1.035 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.6375, allocations: 0 / 1.035 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.6377, allocations: 23.97 kB / 1.035 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.185e-05/0.6377, allocations: 11.98 kB / 1.035 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.6378, allocations: 4 kB / 1.035 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.221e-05/0.6378, allocations: 124 kB / 1.035 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6378, allocations: 0 / 1.035 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004027/0.6383, allocations: 79.98 kB / 1.035 GB, free: 1.684 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 (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002747/0.6385, allocations: 174.9 kB / 1.035 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.6387, allocations: 109.3 kB / 1.035 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.6388, allocations: 8 kB / 1.035 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.953e-05/0.6388, allocations: 39.92 kB / 1.035 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.6392, allocations: 48.59 kB / 1.035 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.6399, allocations: 435.3 kB / 1.036 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.6402, allocations: 0.7172 MB / 1.037 GB, free: 104 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001761/0.6404, allocations: 45.81 kB / 1.037 GB, free: 60 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.101e-05/0.6404, allocations: 23.42 kB / 1.037 GB, free: 36 kB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.6404, allocations: 0 / 1.037 GB, free: 36 kB / 0.7794 GB Notification: Performance of Templates: time 0.006408/0.6468, allocations: 3.156 MB / 1.04 GB, free: 12.91 MB / 0.795 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","../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches