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.001585/0.001585, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002076/0.002076, allocations: 195.1 kB / 16.14 MB, free: 6.711 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.349/2.349, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.677/0.6783, allocations: 140.4 MB / 0.9489 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006984/0.6853, allocations: 4.754 MB / 0.9535 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00261/0.688, allocations: 2.72 MB / 0.9562 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.6882, allocations: 0 / 0.9562 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.6885, allocations: 43.62 kB / 0.9562 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003562/0.6889, allocations: 86.47 kB / 0.9563 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.6904, allocations: 460.1 kB / 0.9568 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.6908, allocations: 302.4 kB / 0.9571 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.365e-05/0.6908, allocations: 22.61 kB / 0.9571 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.6911, allocations: 103.4 kB / 0.9572 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.6913, allocations: 94.88 kB / 0.9573 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.6913, allocations: 5.938 kB / 0.9573 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000883/0.6922, allocations: 378.1 kB / 0.9576 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.03e-05/0.6923, allocations: 32.89 kB / 0.9577 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.6924, allocations: 80.31 kB / 0.9577 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007467/0.6932, allocations: 365.7 kB / 0.9581 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.6932, allocations: 0 / 0.9581 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.52e-07/0.6932, allocations: 1.469 kB / 0.9581 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.6932, allocations: 0 / 0.9581 GB, free: 2.02 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.0006352/0.6938, allocations: 0.4971 MB / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.6939, allocations: 10.22 kB / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.694, allocations: 25.52 kB / 0.9586 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.6942, allocations: 220.8 kB / 0.9588 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.6942, allocations: 15.22 kB / 0.9588 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.6943, allocations: 18.38 kB / 0.9588 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.6946, allocations: 250.7 kB / 0.9591 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.6946, allocations: 0 / 0.9591 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.6947, allocations: 6.594 kB / 0.9591 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.6947, allocations: 5.75 kB / 0.9591 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004341/0.6951, allocations: 424.5 kB / 0.9595 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009094/0.696, allocations: 0.9458 MB / 0.9604 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.6963, allocations: 170.6 kB / 0.9606 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.6964, allocations: 62.69 kB / 0.9607 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001171/0.6976, allocations: 1.819 MB / 0.9624 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.6977, allocations: 41.72 kB / 0.9625 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.6977, allocations: 0 / 0.9625 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0003622/0.698, allocations: 149.6 kB / 0.9626 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.6981, allocations: 57.28 kB / 0.9627 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.6982, allocations: 176 kB / 0.9628 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.6983, allocations: 34.89 kB / 0.9629 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.6983, allocations: 135.5 kB / 0.963 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.6984, allocations: 50.88 kB / 0.963 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.6985, allocations: 56.91 kB / 0.9631 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.6986, allocations: 329.4 kB / 0.9634 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.688e-05/0.6987, allocations: 37.61 kB / 0.9634 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.6988, allocations: 137.8 kB / 0.9636 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.699, allocations: 200.7 kB / 0.9638 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.699, allocations: 1.094 kB / 0.9638 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003127/0.6994, allocations: 212.6 kB / 0.964 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.6994, allocations: 10.88 kB / 0.964 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.6994, allocations: 3.656 kB / 0.964 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.6994, allocations: 5.344 kB / 0.964 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.6996, allocations: 60.59 kB / 0.9641 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.6996, allocations: 8.531 kB / 0.9641 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.6997, allocations: 25.16 kB / 0.9641 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.6998, allocations: 14.75 kB / 0.9641 GB, free: 12.34 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.0001034/0.6999, allocations: 135.8 kB / 0.9642 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.6999, allocations: 12.62 kB / 0.9642 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.7002, allocations: 156.1 kB / 0.9644 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.7003, allocations: 6.125 kB / 0.9644 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.7003, allocations: 5.062 kB / 0.9644 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.7003, allocations: 0 / 0.9644 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.7005, allocations: 214.2 kB / 0.9646 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.7005, allocations: 3.938 kB / 0.9646 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.846e-05/0.7006, allocations: 23.33 kB / 0.9646 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.7006, allocations: 5.391 kB / 0.9646 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.7006, allocations: 5.344 kB / 0.9646 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.7006, allocations: 9.156 kB / 0.9646 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7006, allocations: 0 / 0.9646 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.7009, allocations: 233.4 kB / 0.9649 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.701, allocations: 110.4 kB / 0.965 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.701, allocations: 1.781 kB / 0.965 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.7012, allocations: 19.89 kB / 0.965 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/0.7013, allocations: 12.92 kB / 0.965 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.7013, allocations: 10.78 kB / 0.965 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.717e-05/0.7014, allocations: 133.2 kB / 0.9651 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7014, allocations: 0 / 0.9651 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003862/0.7018, allocations: 69.34 kB / 0.9652 GB, free: 11.39 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.000298/0.7021, allocations: 179.8 kB / 0.9654 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.7023, allocations: 119 kB / 0.9655 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.7023, allocations: 1.094 kB / 0.9655 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.208e-05/0.7024, allocations: 43.95 kB / 0.9655 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004585/0.7029, allocations: 54.36 kB / 0.9656 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007231/0.7036, allocations: 394.1 kB / 0.966 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.7039, allocations: 0.7168 MB / 0.9667 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001765/0.7041, allocations: 54.45 kB / 0.9667 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.7041, allocations: 25.22 kB / 0.9667 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.7041, allocations: 0 / 0.9667 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of Templates: time 0.007695/0.7118, allocations: 3.301 MB / 0.97 GB, free: 8.484 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