Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.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: 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_11_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_11_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.001783/0.001783, allocations: 106 kB / 15.99 MB, free: 6.352 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.00196/0.00196, allocations: 193.2 kB / 16.91 MB, free: 6.195 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.432/1.432, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.667/2.667, allocations: 469.8 MB / 0.7427 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 55.31 kB / 0.9087 GB, free: 14.31 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2905, allocations: 159.1 MB / 1.064 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006272/0.2968, allocations: 4.745 MB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00303/0.2998, allocations: 2.687 MB / 1.071 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.265e-05/0.3, allocations: 0 / 1.071 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.3002, allocations: 47.73 kB / 1.071 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.3005, allocations: 87.48 kB / 1.071 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.3017, allocations: 473 kB / 1.072 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.3019, allocations: 228 kB / 1.072 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.924e-05/0.302, allocations: 17.55 kB / 1.072 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.3022, allocations: 119.5 kB / 1.072 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.3024, allocations: 87.67 kB / 1.072 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.3024, allocations: 8 kB / 1.072 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006567/0.303, allocations: 379.2 kB / 1.073 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.3031, allocations: 43.83 kB / 1.073 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.196e-05/0.3032, allocations: 75.66 kB / 1.073 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004326/0.3037, allocations: 243.7 kB / 1.073 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3037, allocations: 4 kB / 1.073 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.542e-06/0.3037, allocations: 4 kB / 1.073 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3037, allocations: 0 / 1.073 GB, free: 5.934 MB / 0.8419 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.0007573/0.3045, allocations: 0.4915 MB / 1.074 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3045, allocations: 12.62 kB / 1.074 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.3047, allocations: 28.73 kB / 1.074 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.3049, allocations: 208.1 kB / 1.074 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.305, allocations: 20.58 kB / 1.074 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.305, allocations: 16.38 kB / 1.074 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.3054, allocations: 256 kB / 1.074 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.3054, allocations: 0 / 1.074 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.482e-05/0.3055, allocations: 8 kB / 1.074 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.3055, allocations: 4 kB / 1.074 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.306, allocations: 435.5 kB / 1.075 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.3072, allocations: 0.9487 MB / 1.075 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.3075, allocations: 158.4 kB / 1.076 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3076, allocations: 68.88 kB / 1.076 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001554/0.3092, allocations: 1.825 MB / 1.077 GB, free: 0.918 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.3092, allocations: 34.56 kB / 1.077 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.522e-06/0.3092, allocations: 4 kB / 1.077 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.000342/0.3096, allocations: 145.4 kB / 1.078 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.3096, allocations: 59.34 kB / 1.078 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.3098, allocations: 167.2 kB / 1.078 GB, free: 488 kB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3098, allocations: 33.69 kB / 1.078 GB, free: 448 kB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3099, allocations: 143.8 kB / 1.078 GB, free: 300 kB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.959e-05/0.31, allocations: 55.2 kB / 1.078 GB, free: 244 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.011e-05/0.3101, allocations: 45.7 kB / 1.078 GB, free: 192 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.4507/0.7608, allocations: 326.8 kB / 1.078 GB, free: 22.97 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.761, allocations: 33.2 kB / 1.078 GB, free: 22.97 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.7612, allocations: 142.1 kB / 1.079 GB, free: 22.84 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.7614, allocations: 198.7 kB / 1.079 GB, free: 22.72 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.7615, allocations: 1.688 kB / 1.079 GB, free: 22.72 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004306/0.7619, allocations: 215.6 kB / 1.079 GB, free: 22.67 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.7619, allocations: 7.203 kB / 1.079 GB, free: 22.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.762, allocations: 7.656 kB / 1.079 GB, free: 22.67 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.591e-05/0.762, allocations: 5.562 kB / 1.079 GB, free: 22.67 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.7622, allocations: 57.66 kB / 1.079 GB, free: 22.67 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.812e-05/0.7623, allocations: 13.73 kB / 1.079 GB, free: 22.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.7624, allocations: 25.8 kB / 1.079 GB, free: 22.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.7625, allocations: 14.94 kB / 1.079 GB, free: 22.66 MB / 0.8419 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.0001236/0.7626, allocations: 129.5 kB / 1.079 GB, free: 22.55 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.773e-05/0.7627, allocations: 15.84 kB / 1.079 GB, free: 22.55 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.763, allocations: 155.1 kB / 1.079 GB, free: 22.51 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.763, allocations: 6.75 kB / 1.079 GB, free: 22.51 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.763, allocations: 4.812 kB / 1.079 GB, free: 22.51 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.763, allocations: 1.406 kB / 1.079 GB, free: 22.51 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.7633, allocations: 215.5 kB / 1.08 GB, free: 22.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.7634, allocations: 0.5156 kB / 1.08 GB, free: 22.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.904e-05/0.7635, allocations: 26.33 kB / 1.08 GB, free: 22.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.7635, allocations: 4.609 kB / 1.08 GB, free: 22.32 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.7635, allocations: 5.891 kB / 1.08 GB, free: 22.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.7635, allocations: 5 kB / 1.08 GB, free: 22.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.7635, allocations: 1.688 kB / 1.08 GB, free: 22.31 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/0.7638, allocations: 219.4 kB / 1.08 GB, free: 22.18 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.7639, allocations: 111 kB / 1.08 GB, free: 22.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.7639, allocations: 8.844 kB / 1.08 GB, free: 22.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.7641, allocations: 22.27 kB / 1.08 GB, free: 22.07 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.688e-05/0.7642, allocations: 8.109 kB / 1.08 GB, free: 22.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.7642, allocations: 12.38 kB / 1.08 GB, free: 22.07 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.444e-05/0.7643, allocations: 120.4 kB / 1.08 GB, free: 21.99 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.7643, allocations: 0 / 1.08 GB, free: 21.99 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004395/0.7647, allocations: 76.52 kB / 1.08 GB, free: 21.99 MB / 0.8419 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.0004168/0.7652, allocations: 191 kB / 1.08 GB, free: 21.9 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003002/0.7655, allocations: 121.1 kB / 1.081 GB, free: 21.89 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.7655, allocations: 0 / 1.081 GB, free: 21.89 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.502e-05/0.7656, allocations: 46.72 kB / 1.081 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.766, allocations: 48.31 kB / 1.081 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007312/0.7668, allocations: 424.5 kB / 1.081 GB, free: 21.63 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.7669, allocations: 0.7229 MB / 1.082 GB, free: 20.93 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.199e-05/0.767, allocations: 29.39 kB / 1.082 GB, free: 20.92 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.767, allocations: 0 / 1.082 GB, free: 20.92 MB / 0.8419 GB Notification: Performance of Templates: time 0.008462/0.7755, allocations: 3.164 MB / 1.085 GB, free: 20.58 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_11_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_11_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_11_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches