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.006091/0.006091, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001344/0.001343, allocations: 195.4 kB / 16.79 MB, free: 5.809 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.431/1.431, allocations: 222.9 MB / 240.5 MB, free: 4.551 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.371/2.371, allocations: 390.2 MB / 0.6649 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.89 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5745/0.5758, allocations: 140.4 MB / 0.9496 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005414/0.5813, allocations: 4.747 MB / 0.9542 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002301/0.5836, allocations: 2.73 MB / 0.9569 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.5838, allocations: 1.281 kB / 0.9569 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002603/0.5841, allocations: 37.73 kB / 0.9569 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.5844, allocations: 84.11 kB / 0.957 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.5855, allocations: 472.4 kB / 0.9574 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.5858, allocations: 301 kB / 0.9577 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.5859, allocations: 8.906 kB / 0.9577 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.5861, allocations: 113.1 kB / 0.9578 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.5863, allocations: 90.91 kB / 0.9579 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.5863, allocations: 6.938 kB / 0.9579 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007623/0.5871, allocations: 377.1 kB / 0.9583 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.5871, allocations: 34.17 kB / 0.9583 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.5873, allocations: 84.03 kB / 0.9584 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.5877, allocations: 242.4 kB / 0.9586 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.5877, allocations: 0 / 0.9586 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.943e-06/0.5877, allocations: 0 / 0.9586 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.5877, allocations: 3.938 kB / 0.9586 GB, free: 1.918 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.0006691/0.5884, allocations: 0.4982 MB / 0.9591 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5884, allocations: 10.75 kB / 0.9591 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.5886, allocations: 28.2 kB / 0.9592 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.5888, allocations: 209.2 kB / 0.9594 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.5888, allocations: 20.73 kB / 0.9594 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.5889, allocations: 14 kB / 0.9594 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003404/0.5892, allocations: 245.6 kB / 0.9596 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.5892, allocations: 3.938 kB / 0.9596 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.5893, allocations: 14.75 kB / 0.9597 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.5893, allocations: 5.5 kB / 0.9597 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004366/0.5897, allocations: 424.9 kB / 0.9601 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009829/0.5907, allocations: 0.9455 MB / 0.961 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.591, allocations: 171.7 kB / 0.9611 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.5912, allocations: 63.19 kB / 0.9612 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001333/0.5925, allocations: 1.823 MB / 0.963 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.5925, allocations: 36.91 kB / 0.963 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.5926, allocations: 0 / 0.963 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0003598/0.5929, allocations: 145.1 kB / 0.9632 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.593, allocations: 61.44 kB / 0.9632 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.5931, allocations: 176 kB / 0.9634 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.5932, allocations: 27.95 kB / 0.9634 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.5933, allocations: 146.4 kB / 0.9636 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.5933, allocations: 50.84 kB / 0.9636 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.5934, allocations: 56.23 kB / 0.9637 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5935, allocations: 323.2 kB / 0.964 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.375e-05/0.5936, allocations: 36.84 kB / 0.964 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.5937, allocations: 142.1 kB / 0.9641 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.594, allocations: 208.5 kB / 0.9643 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.594, allocations: 1.094 kB / 0.9643 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003473/0.5943, allocations: 216.6 kB / 0.9645 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.5943, allocations: 6.531 kB / 0.9645 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.5944, allocations: 3.406 kB / 0.9646 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.5944, allocations: 4.594 kB / 0.9646 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.5946, allocations: 57.77 kB / 0.9646 GB, free: 12.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.5946, allocations: 12.64 kB / 0.9646 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.5947, allocations: 25.47 kB / 0.9646 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.5947, allocations: 10.56 kB / 0.9647 GB, free: 12.23 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.0001117/0.5949, allocations: 136.1 kB / 0.9648 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-05/0.5949, allocations: 13.25 kB / 0.9648 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003038/0.5953, allocations: 159 kB / 0.965 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.5953, allocations: 6.312 kB / 0.965 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.5953, allocations: 0 / 0.965 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.5953, allocations: 5.344 kB / 0.965 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.5956, allocations: 212.5 kB / 0.9652 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5956, allocations: 5.312 kB / 0.9652 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.123e-05/0.5957, allocations: 27.08 kB / 0.9652 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5957, allocations: 1.125 kB / 0.9652 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.5957, allocations: 5.062 kB / 0.9652 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.5957, allocations: 5.062 kB / 0.9652 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5957, allocations: 0 / 0.9652 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.596, allocations: 216.7 kB / 0.9654 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.5961, allocations: 114.6 kB / 0.9655 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.5961, allocations: 5.125 kB / 0.9655 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.5963, allocations: 24.36 kB / 0.9656 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.5964, allocations: 16.95 kB / 0.9656 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.5964, allocations: 10.97 kB / 0.9656 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001089/0.5965, allocations: 119.6 kB / 0.9657 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5965, allocations: 1.094 kB / 0.9657 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004957/0.597, allocations: 77.39 kB / 0.9658 GB, free: 11.29 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.0005574/0.5976, allocations: 187.9 kB / 0.9659 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003069/0.5979, allocations: 117.9 kB / 0.9661 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5979, allocations: 1.188 kB / 0.9661 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.793e-05/0.598, allocations: 49.22 kB / 0.9661 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.5986, allocations: 49.02 kB / 0.9662 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009087/0.5995, allocations: 422.7 kB / 0.9666 GB, free: 10.76 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.5998, allocations: 0.7121 MB / 0.9673 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.097e-05/0.5999, allocations: 28.44 kB / 0.9673 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of SimCode: time 7.11e-07/0.5999, allocations: 0 / 0.9673 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of Templates: time 0.006908/0.6068, allocations: 3.153 MB / 0.9704 GB, free: 8.41 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches