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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008366/0.0008365, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000844/0.000844, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.712/2.712, allocations: 390.9 MB / 0.666 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003799, allocations: 8 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7122/0.7126, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.004554/0.7172, allocations: 4.217 MB / 0.9585 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002245/0.7194, allocations: 2.48 MB / 0.961 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.924e-05/0.7195, allocations: 1.125 kB / 0.961 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.7197, allocations: 44.44 kB / 0.961 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.72, allocations: 78.12 kB / 0.9611 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007828/0.7207, allocations: 411.2 kB / 0.9615 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002684/0.721, allocations: 270.2 kB / 0.9617 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.991e-05/0.7211, allocations: 8.438 kB / 0.9617 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.7213, allocations: 113.3 kB / 0.9618 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.7215, allocations: 90.16 kB / 0.9619 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.7215, allocations: 10.88 kB / 0.9619 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005852/0.7221, allocations: 260.5 kB / 0.9622 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.243e-05/0.7222, allocations: 33.45 kB / 0.9622 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.848e-05/0.7222, allocations: 52.89 kB / 0.9623 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.7226, allocations: 221 kB / 0.9625 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.7226, allocations: 0.875 kB / 0.9625 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.395e-06/0.7226, allocations: 0 / 0.9625 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.7226, allocations: 0 / 0.9625 GB, free: 1.312 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.0006407/0.7233, allocations: 477.7 kB / 0.9629 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.7233, allocations: 9.812 kB / 0.9629 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.7235, allocations: 20.81 kB / 0.963 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.7237, allocations: 211.6 kB / 0.9632 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.7237, allocations: 10.77 kB / 0.9632 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.7237, allocations: 17.97 kB / 0.9632 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.724, allocations: 252.9 kB / 0.9634 GB, free: 428 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.7241, allocations: 0 / 0.9634 GB, free: 428 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.7241, allocations: 11.05 kB / 0.9634 GB, free: 420 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.7241, allocations: 9.016 kB / 0.9635 GB, free: 416 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000461/0.7246, allocations: 428 kB / 0.9639 GB, free: 220 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.7256, allocations: 0.9473 MB / 0.9648 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.7259, allocations: 161.2 kB / 0.9649 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.361e-05/0.726, allocations: 57.92 kB / 0.965 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001251/0.7273, allocations: 1.839 MB / 0.9668 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.7273, allocations: 33 kB / 0.9668 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.7273, allocations: 0 / 0.9668 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.000312/0.7276, allocations: 140.7 kB / 0.967 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.7277, allocations: 52.31 kB / 0.967 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.7278, allocations: 174.9 kB / 0.9672 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.7279, allocations: 31.77 kB / 0.9672 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.309e-05/0.728, allocations: 142.6 kB / 0.9673 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.728, allocations: 47.11 kB / 0.9674 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.728, allocations: 9.078 kB / 0.9674 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.7281, allocations: 329.9 kB / 0.9677 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.7282, allocations: 36.64 kB / 0.9677 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.7283, allocations: 140.4 kB / 0.9679 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.606e-05/0.7284, allocations: 60.23 kB / 0.9679 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.7285, allocations: 1.156 kB / 0.9679 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002861/0.7287, allocations: 216.8 kB / 0.9681 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.7288, allocations: 3.781 kB / 0.9681 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.912e-06/0.7288, allocations: 4.469 kB / 0.9682 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.7288, allocations: 5.812 kB / 0.9682 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.729, allocations: 56.23 kB / 0.9682 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.729, allocations: 13.62 kB / 0.9682 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.7291, allocations: 32.73 kB / 0.9683 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.7291, allocations: 10.66 kB / 0.9683 GB, free: 11.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.7293, allocations: 140.6 kB / 0.9684 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.7293, allocations: 16.69 kB / 0.9684 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.7296, allocations: 147.9 kB / 0.9686 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.7296, allocations: 10.02 kB / 0.9686 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.7296, allocations: 1 kB / 0.9686 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.7296, allocations: 0 / 0.9686 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.7299, allocations: 213.5 kB / 0.9688 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.7299, allocations: 4.781 kB / 0.9688 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.932e-05/0.73, allocations: 23.3 kB / 0.9688 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.73, allocations: 4.969 kB / 0.9688 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.73, allocations: 5.125 kB / 0.9688 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.73, allocations: 4.984 kB / 0.9688 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.73, allocations: 0.9688 kB / 0.9688 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.7303, allocations: 229.2 kB / 0.969 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.7303, allocations: 114.1 kB / 0.9691 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.7304, allocations: 1.031 kB / 0.9691 GB, free: 11.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.7306, allocations: 24.28 kB / 0.9692 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.7306, allocations: 8.766 kB / 0.9692 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.7306, allocations: 14.83 kB / 0.9692 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.746e-05/0.7307, allocations: 127.6 kB / 0.9693 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7307, allocations: 0 / 0.9693 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004124/0.7312, allocations: 77.67 kB / 0.9694 GB, free: 10.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002589/0.7314, allocations: 167.9 kB / 0.9695 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002439/0.7317, allocations: 119.3 kB / 0.9697 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7317, allocations: 0.9688 kB / 0.9697 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.274e-05/0.7318, allocations: 45.48 kB / 0.9697 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.7322, allocations: 52.78 kB / 0.9698 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006639/0.7329, allocations: 434.2 kB / 0.9702 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.7332, allocations: 0.7128 MB / 0.9709 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000173/0.7334, allocations: 46.42 kB / 0.9709 GB, free: 9.629 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.7334, allocations: 25.25 kB / 0.9709 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.7334, allocations: 1.094 kB / 0.9709 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of Templates: time 0.006455/0.7399, allocations: 3.178 MB / 0.974 GB, free: 8.012 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