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.001013/0.001013, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008006/0.008006, allocations: 169 kB / 16.26 MB, free: 6.66 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.398/1.398, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.411/2.411, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 8 kB / 0.8159 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6713/0.6717, allocations: 142.4 MB / 0.955 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005246/0.677, allocations: 4.373 MB / 0.9593 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002646/0.6796, allocations: 2.669 MB / 0.9619 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.6798, allocations: 1.031 kB / 0.9619 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003287/0.6802, allocations: 47.12 kB / 0.962 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.6806, allocations: 86.53 kB / 0.962 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.682, allocations: 460.3 kB / 0.9625 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.6824, allocations: 309.3 kB / 0.9628 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.759e-05/0.6825, allocations: 13.34 kB / 0.9628 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.6827, allocations: 116.7 kB / 0.9629 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.6829, allocations: 87.41 kB / 0.963 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.6829, allocations: 6.156 kB / 0.963 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007609/0.6837, allocations: 372.5 kB / 0.9633 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.307e-05/0.6838, allocations: 38.48 kB / 0.9634 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.221e-05/0.6839, allocations: 106.9 kB / 0.9635 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.6845, allocations: 356.2 kB / 0.9638 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6846, allocations: 1.406 kB / 0.9638 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6846, allocations: 4 kB / 0.9638 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.876e-05/0.6846, allocations: 0 / 0.9638 GB, free: 0.8398 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.0006579/0.6853, allocations: 477.3 kB / 0.9643 GB, free: 388 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.6853, allocations: 13.3 kB / 0.9643 GB, free: 384 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.6855, allocations: 21.56 kB / 0.9643 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002506/0.6858, allocations: 213.9 kB / 0.9645 GB, free: 136 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.6858, allocations: 11.55 kB / 0.9645 GB, free: 132 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.6858, allocations: 18.22 kB / 0.9645 GB, free: 124 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.6863, allocations: 253.9 kB / 0.9648 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.6863, allocations: 0 / 0.9648 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.6863, allocations: 11.16 kB / 0.9648 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.6864, allocations: 6.031 kB / 0.9648 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005284/0.6869, allocations: 423.7 kB / 0.9652 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.6882, allocations: 0.9519 MB / 0.9661 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.6885, allocations: 166.7 kB / 0.9663 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.6886, allocations: 62.56 kB / 0.9664 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001509/0.6901, allocations: 1.824 MB / 0.9681 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.6902, allocations: 41.19 kB / 0.9682 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.6902, allocations: 4 kB / 0.9682 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0003369/0.6905, allocations: 147.5 kB / 0.9683 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.6906, allocations: 57.38 kB / 0.9684 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.6907, allocations: 172.7 kB / 0.9685 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.6908, allocations: 30.92 kB / 0.9686 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.981e-05/0.6909, allocations: 139.7 kB / 0.9687 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.6909, allocations: 53.66 kB / 0.9687 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.691, allocations: 28.58 kB / 0.9688 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6911, allocations: 321.8 kB / 0.9691 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.275e-05/0.6912, allocations: 42.16 kB / 0.9691 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.6913, allocations: 141.2 kB / 0.9693 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.6915, allocations: 200.9 kB / 0.9694 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6916, allocations: 5.906 kB / 0.9695 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003669/0.6919, allocations: 215.6 kB / 0.9697 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.692, allocations: 10.16 kB / 0.9697 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.692, allocations: 4.469 kB / 0.9697 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.692, allocations: 9.375 kB / 0.9697 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.6922, allocations: 56.59 kB / 0.9697 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.6922, allocations: 8.734 kB / 0.9697 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.6924, allocations: 25.09 kB / 0.9698 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/0.6924, allocations: 14.97 kB / 0.9698 GB, free: 11.18 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.0001463/0.6926, allocations: 130.4 kB / 0.9699 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.6926, allocations: 13.09 kB / 0.9699 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.693, allocations: 169.8 kB / 0.9701 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.693, allocations: 6.031 kB / 0.9701 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.693, allocations: 1.062 kB / 0.9701 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.693, allocations: 0 / 0.9701 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002835/0.6933, allocations: 209.4 kB / 0.9703 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.6933, allocations: 1.156 kB / 0.9703 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.46e-05/0.6934, allocations: 27.02 kB / 0.9703 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.6934, allocations: 0.9688 kB / 0.9703 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.6934, allocations: 2.125 kB / 0.9703 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.6934, allocations: 3.938 kB / 0.9703 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.6935, allocations: 5.094 kB / 0.9703 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002637/0.6937, allocations: 227.1 kB / 0.9705 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.6938, allocations: 114 kB / 0.9707 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.6939, allocations: 4.938 kB / 0.9707 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.6941, allocations: 20.23 kB / 0.9707 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.6941, allocations: 16.77 kB / 0.9707 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.6942, allocations: 7.219 kB / 0.9707 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.462e-05/0.6943, allocations: 124.1 kB / 0.9708 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6943, allocations: 0 / 0.9708 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004204/0.6947, allocations: 74.39 kB / 0.9709 GB, free: 10.24 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.0003308/0.695, allocations: 182.8 kB / 0.9711 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002489/0.6953, allocations: 117 kB / 0.9712 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6953, allocations: 1 kB / 0.9712 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.795e-05/0.6954, allocations: 44.36 kB / 0.9712 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.6959, allocations: 54.02 kB / 0.9713 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007667/0.6966, allocations: 435.2 kB / 0.9717 GB, free: 9.707 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.697, allocations: 0.7233 MB / 0.9724 GB, free: 8.984 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000186/0.6971, allocations: 47.02 kB / 0.9724 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.062e-05/0.6972, allocations: 25.27 kB / 0.9725 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.6972, allocations: 0 / 0.9725 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of Templates: time 0.007981/0.7052, allocations: 3.298 MB / 0.9757 GB, free: 7.285 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