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.001078/0.001078, allocations: 92.39 kB / 16.02 MB, free: 80 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.001488/0.001488, allocations: 178.6 kB / 16.92 MB, free: 6.652 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.403/1.403, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003482, allocations: 8.062 kB / 0.9034 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2704, allocations: 159.6 MB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.004654/0.275, allocations: 4.367 MB / 1.064 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002747/0.2778, allocations: 2.687 MB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.357e-05/0.2779, allocations: 4 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.2781, allocations: 39.8 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.2784, allocations: 87.48 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.2794, allocations: 463.8 kB / 1.067 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00029/0.2797, allocations: 307.9 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.401e-05/0.2798, allocations: 13.5 kB / 1.067 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.2799, allocations: 111.5 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2801, allocations: 91.66 kB / 1.067 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.2801, allocations: 8 kB / 1.067 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006573/0.2808, allocations: 367.2 kB / 1.068 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.622e-05/0.2809, allocations: 43.83 kB / 1.068 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.122e-05/0.281, allocations: 109.4 kB / 1.068 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.2813, allocations: 247.7 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2813, allocations: 0 / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2813, allocations: 0 / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.2813, allocations: 0 / 1.068 GB, free: 12.06 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006214/0.282, allocations: 463.4 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.282, allocations: 11.97 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.2822, allocations: 24.73 kB / 1.068 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.2824, allocations: 212 kB / 1.069 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.2824, allocations: 20.7 kB / 1.069 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.2824, allocations: 16.38 kB / 1.069 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.2828, allocations: 252.1 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2828, allocations: 7.875 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.2828, allocations: 8 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/0.2829, allocations: 4 kB / 1.069 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.2833, allocations: 431.5 kB / 1.069 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.2844, allocations: 0.9488 MB / 1.07 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.2847, allocations: 156.9 kB / 1.07 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.66e-05/0.2848, allocations: 60.88 kB / 1.071 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001276/0.2861, allocations: 1.833 MB / 1.072 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.2861, allocations: 38.56 kB / 1.072 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.2861, allocations: 0 / 1.072 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0002993/0.2864, allocations: 143.5 kB / 1.072 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2865, allocations: 59.34 kB / 1.073 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.2866, allocations: 171.9 kB / 1.073 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2866, allocations: 37.64 kB / 1.073 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.778e-05/0.2867, allocations: 135.8 kB / 1.073 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.2868, allocations: 51.3 kB / 1.073 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.2868, allocations: 29.7 kB / 1.073 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.2869, allocations: 326.8 kB / 1.073 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.49e-05/0.287, allocations: 35.97 kB / 1.073 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.2871, allocations: 137.7 kB / 1.073 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.2873, allocations: 204.4 kB / 1.074 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2874, allocations: 3.938 kB / 1.074 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000306/0.2877, allocations: 221.4 kB / 1.074 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2877, allocations: 4 kB / 1.074 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.2877, allocations: 4 kB / 1.074 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2877, allocations: 4 kB / 1.074 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.2879, allocations: 59.86 kB / 1.074 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.2879, allocations: 11.92 kB / 1.074 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.288, allocations: 27.69 kB / 1.074 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.2881, allocations: 12 kB / 1.074 GB, free: 5.23 MB / 0.8262 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.0001062/0.2882, allocations: 131.4 kB / 1.074 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.2882, allocations: 19.81 kB / 1.074 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.2885, allocations: 151 kB / 1.074 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.2885, allocations: 7.938 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2885, allocations: 0 / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.2886, allocations: 4 kB / 1.074 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.2888, allocations: 221.4 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2888, allocations: 0 / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.588e-05/0.2889, allocations: 23.94 kB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2889, allocations: 4 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.2889, allocations: 11.92 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.2889, allocations: 3.938 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.289, allocations: 7.938 kB / 1.075 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002207/0.2892, allocations: 210.5 kB / 1.075 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-05/0.2893, allocations: 112.9 kB / 1.075 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.2893, allocations: 0 / 1.075 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.2895, allocations: 31.92 kB / 1.075 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.146e-05/0.2896, allocations: 11.92 kB / 1.075 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.2896, allocations: 12 kB / 1.075 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.526e-05/0.2897, allocations: 112 kB / 1.075 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2897, allocations: 0 / 1.075 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003809/0.2901, allocations: 87.92 kB / 1.075 GB, free: 3.996 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 (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.0003053/0.2904, allocations: 167.2 kB / 1.075 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.2906, allocations: 115.7 kB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2906, allocations: 0.9375 kB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.245e-05/0.2907, allocations: 47.91 kB / 1.075 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.2911, allocations: 59.94 kB / 1.075 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006582/0.2918, allocations: 467.1 kB / 1.076 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.2921, allocations: 0.7092 MB / 1.077 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.924e-05/0.2921, allocations: 27.44 kB / 1.077 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2921, allocations: 4 kB / 1.077 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of Templates: time 0.004802/0.2969, allocations: 3.134 MB / 1.08 GB, free: 15.23 MB / 0.8419 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches