Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001181/0.001182, allocations: 108 kB / 15.6 MB, free: 132 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.001176/0.001176, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.437/2.437, allocations: 390.2 MB / 0.6646 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 59.91 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6912/0.6927, allocations: 140.4 MB / 0.9496 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005815/0.6985, allocations: 4.737 MB / 0.9542 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0024/0.701, allocations: 2.695 MB / 0.9568 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.941e-05/0.7011, allocations: 1.562 kB / 0.9568 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002708/0.7014, allocations: 50.36 kB / 0.9569 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.7017, allocations: 92.95 kB / 0.957 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.7027, allocations: 0.4945 MB / 0.9574 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002241/0.7029, allocations: 238.2 kB / 0.9577 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.078e-05/0.703, allocations: 9.812 kB / 0.9577 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.7032, allocations: 117.7 kB / 0.9578 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.7033, allocations: 89.88 kB / 0.9579 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.7034, allocations: 8.094 kB / 0.9579 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006481/0.704, allocations: 363.1 kB / 0.9582 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.346e-05/0.7041, allocations: 38.83 kB / 0.9583 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.581e-05/0.7042, allocations: 80.22 kB / 0.9583 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.7048, allocations: 364.6 kB / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.7048, allocations: 0 / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.143e-06/0.7048, allocations: 0 / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.7048, allocations: 0 / 0.9587 GB, free: 2.008 MB / 0.7169 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.0006771/0.7055, allocations: 0.5027 MB / 0.9592 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.7055, allocations: 9.625 kB / 0.9592 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.7057, allocations: 21.12 kB / 0.9592 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.7059, allocations: 217.8 kB / 0.9594 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.7059, allocations: 14.2 kB / 0.9594 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/0.706, allocations: 15.38 kB / 0.9594 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.7063, allocations: 249.1 kB / 0.9597 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.7063, allocations: 1.281 kB / 0.9597 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.7064, allocations: 10.08 kB / 0.9597 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.7064, allocations: 5.5 kB / 0.9597 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.7069, allocations: 433 kB / 0.9601 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.7079, allocations: 0.9431 MB / 0.961 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.7082, allocations: 169 kB / 0.9612 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.7083, allocations: 62.66 kB / 0.9612 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/0.7098, allocations: 1.823 MB / 0.963 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.7099, allocations: 37.34 kB / 0.9631 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.7099, allocations: 0 / 0.9631 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.000356/0.7102, allocations: 147.6 kB / 0.9632 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.7103, allocations: 57.72 kB / 0.9633 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.7104, allocations: 173.4 kB / 0.9634 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.7105, allocations: 31.45 kB / 0.9635 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.556e-05/0.7106, allocations: 147.1 kB / 0.9636 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.7106, allocations: 42.77 kB / 0.9636 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.7107, allocations: 56.52 kB / 0.9637 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7108, allocations: 326.8 kB / 0.964 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.271e-05/0.7109, allocations: 36.84 kB / 0.964 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.7111, allocations: 137.7 kB / 0.9642 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.7113, allocations: 205.7 kB / 0.9644 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.7113, allocations: 1.094 kB / 0.9644 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000345/0.7117, allocations: 212.2 kB / 0.9646 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.7117, allocations: 6.062 kB / 0.9646 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.7117, allocations: 8.062 kB / 0.9646 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.7117, allocations: 5.031 kB / 0.9646 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.7119, allocations: 56.52 kB / 0.9646 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.7119, allocations: 12.98 kB / 0.9647 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.7121, allocations: 24.5 kB / 0.9647 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.7121, allocations: 18.62 kB / 0.9647 GB, free: 12.32 MB / 0.7325 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.0001198/0.7122, allocations: 137.2 kB / 0.9648 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.222e-05/0.7123, allocations: 15.94 kB / 0.9648 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003097/0.7126, allocations: 161.6 kB / 0.965 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.7126, allocations: 6.375 kB / 0.965 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.7126, allocations: 0 / 0.965 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.7126, allocations: 1.312 kB / 0.965 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.7129, allocations: 213.4 kB / 0.9652 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.7129, allocations: 0 / 0.9652 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.473e-05/0.713, allocations: 22.91 kB / 0.9652 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.713, allocations: 1.312 kB / 0.9652 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.713, allocations: 14.19 kB / 0.9652 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.713, allocations: 5.062 kB / 0.9652 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.713, allocations: 0 / 0.9652 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.7133, allocations: 225.9 kB / 0.9655 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.316e-05/0.7134, allocations: 112.6 kB / 0.9656 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.7135, allocations: 3.984 kB / 0.9656 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.7137, allocations: 13.75 kB / 0.9656 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.37e-05/0.7137, allocations: 13.61 kB / 0.9656 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.7137, allocations: 15.73 kB / 0.9656 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.777e-05/0.7138, allocations: 121.7 kB / 0.9657 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7138, allocations: 1.75 kB / 0.9657 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004115/0.7143, allocations: 76.73 kB / 0.9658 GB, free: 11.38 MB / 0.7325 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.000416/0.7147, allocations: 188.2 kB / 0.966 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.715, allocations: 123.6 kB / 0.9661 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.715, allocations: 1.344 kB / 0.9661 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.555e-05/0.7151, allocations: 45.02 kB / 0.9661 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.7155, allocations: 57.67 kB / 0.9662 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007935/0.7163, allocations: 341.5 kB / 0.9665 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.7167, allocations: 0.7162 MB / 0.9672 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001715/0.7168, allocations: 46.47 kB / 0.9673 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.7169, allocations: 25.69 kB / 0.9673 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of SimCode: time 1.9e-07/0.7169, allocations: 0 / 0.9673 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of Templates: time 0.008121/0.725, allocations: 3.422 MB / 0.9706 GB, free: 8.449 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_9_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches