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.001594/0.001594, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001737/0.001737, allocations: 190 kB / 16.25 MB, free: 6.645 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.408/1.408, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.569/2.569, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 71.83 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7868/0.788, allocations: 140.4 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006549/0.7946, allocations: 4.753 MB / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002441/0.7971, allocations: 2.691 MB / 0.9563 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.572e-05/0.7972, allocations: 1.062 kB / 0.9563 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.7974, allocations: 35.59 kB / 0.9564 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.7977, allocations: 91.45 kB / 0.9565 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.7989, allocations: 477.2 kB / 0.9569 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.7992, allocations: 238.6 kB / 0.9572 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.687e-05/0.7993, allocations: 9.188 kB / 0.9572 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002195/0.7995, allocations: 118.4 kB / 0.9573 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.7997, allocations: 94.06 kB / 0.9574 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.7997, allocations: 8.594 kB / 0.9574 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005878/0.8003, allocations: 369.3 kB / 0.9577 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.591e-05/0.8004, allocations: 42.64 kB / 0.9578 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.8005, allocations: 82.94 kB / 0.9578 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005272/0.801, allocations: 355.3 kB / 0.9582 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.801, allocations: 0 / 0.9582 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.801, allocations: 0 / 0.9582 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.801, allocations: 0 / 0.9582 GB, free: 1.965 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.0008392/0.8019, allocations: 0.5068 MB / 0.9587 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.8019, allocations: 13.48 kB / 0.9587 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.8021, allocations: 20.88 kB / 0.9587 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.8023, allocations: 221.4 kB / 0.9589 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.8024, allocations: 11.86 kB / 0.9589 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.98e-05/0.8024, allocations: 13.97 kB / 0.9589 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004543/0.8029, allocations: 246.5 kB / 0.9592 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.8029, allocations: 3.938 kB / 0.9592 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.8029, allocations: 10.98 kB / 0.9592 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.484e-05/0.803, allocations: 10.16 kB / 0.9592 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006125/0.8036, allocations: 423.6 kB / 0.9596 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.8048, allocations: 0.9423 MB / 0.9605 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.8052, allocations: 161.2 kB / 0.9607 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.8053, allocations: 63.12 kB / 0.9607 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00186/0.8072, allocations: 1.835 MB / 0.9625 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.8072, allocations: 32.78 kB / 0.9626 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.8073, allocations: 1.062 kB / 0.9626 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0004075/0.8077, allocations: 152.2 kB / 0.9627 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.8077, allocations: 57.38 kB / 0.9628 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.8079, allocations: 175.3 kB / 0.9629 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.808, allocations: 34.73 kB / 0.963 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.8081, allocations: 140.2 kB / 0.9631 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.8081, allocations: 49.78 kB / 0.9631 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.381e-05/0.8082, allocations: 57.73 kB / 0.9632 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.8084, allocations: 321.6 kB / 0.9635 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.8084, allocations: 37.64 kB / 0.9635 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.8086, allocations: 145.7 kB / 0.9637 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.8088, allocations: 197.1 kB / 0.9639 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.8089, allocations: 1.312 kB / 0.9639 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000349/0.8092, allocations: 220.2 kB / 0.9641 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.8092, allocations: 7 kB / 0.9641 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.8093, allocations: 3.625 kB / 0.9641 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.8093, allocations: 4.938 kB / 0.9641 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.8095, allocations: 56.84 kB / 0.9642 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.8095, allocations: 8.656 kB / 0.9642 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.8096, allocations: 25.47 kB / 0.9642 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.8096, allocations: 14.12 kB / 0.9642 GB, free: 12.28 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.0001166/0.8098, allocations: 145.1 kB / 0.9643 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.8098, allocations: 12.5 kB / 0.9643 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003041/0.8101, allocations: 150.1 kB / 0.9645 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.8101, allocations: 6.438 kB / 0.9645 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.8102, allocations: 0 / 0.9645 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.8102, allocations: 1.156 kB / 0.9645 GB, free: 12.03 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.8104, allocations: 213.4 kB / 0.9647 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.8105, allocations: 7.938 kB / 0.9647 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.806e-05/0.8106, allocations: 35.64 kB / 0.9647 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.8106, allocations: 1.219 kB / 0.9647 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.8106, allocations: 1.344 kB / 0.9647 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.8106, allocations: 5.156 kB / 0.9648 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8106, allocations: 0 / 0.9648 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.8109, allocations: 227.3 kB / 0.965 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.523e-05/0.811, allocations: 109.2 kB / 0.9651 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.8111, allocations: 5.344 kB / 0.9651 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.8113, allocations: 20.17 kB / 0.9651 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.8113, allocations: 18.2 kB / 0.9651 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.8113, allocations: 10.08 kB / 0.9651 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001073/0.8114, allocations: 118.9 kB / 0.9652 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8115, allocations: 0 / 0.9652 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004325/0.8119, allocations: 74.62 kB / 0.9653 GB, free: 11.34 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.0004541/0.8124, allocations: 180 kB / 0.9655 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.8126, allocations: 122.6 kB / 0.9656 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.8126, allocations: 2 kB / 0.9656 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.068e-05/0.8127, allocations: 48.28 kB / 0.9656 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.8132, allocations: 54.92 kB / 0.9657 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007306/0.8139, allocations: 395.8 kB / 0.9661 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.8142, allocations: 0.7148 MB / 0.9668 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001711/0.8144, allocations: 47.14 kB / 0.9668 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.8144, allocations: 25.66 kB / 0.9668 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of SimCode: time 1.633e-06/0.8144, allocations: 4 kB / 0.9668 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of Templates: time 0.008056/0.8225, allocations: 3.41 MB / 0.9702 GB, free: 8.363 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