Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.SteamProperties.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_10_Buildings.Media.Examples.SteamProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 86.48 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.001284/0.001284, 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.538/1.538, allocations: 223.3 MB / 240 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.799/2.799, allocations: 437.7 MB / 0.7117 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004104, allocations: 8 kB / 0.8722 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8732/0.8736, allocations: 153.8 MB / 1.022 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1564/1.03, allocations: 123.2 MB / 1.143 GB, free: 4.516 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02875/1.059, allocations: 21.38 MB / 1.164 GB, free: 15.07 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/1.059, allocations: 0 / 1.164 GB, free: 15.07 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003452/1.06, allocations: 35.73 kB / 1.164 GB, free: 15.04 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003797/1.06, allocations: 91.48 kB / 1.164 GB, free: 14.95 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.02065/1.081, allocations: 5.316 MB / 1.169 GB, free: 9.652 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006272/1.081, allocations: 279.8 kB / 1.169 GB, free: 9.379 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.665e-05/1.081, allocations: 13.55 kB / 1.169 GB, free: 9.367 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004633/1.082, allocations: 131.6 kB / 1.169 GB, free: 9.238 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/1.082, allocations: 87.66 kB / 1.169 GB, free: 9.152 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/1.082, allocations: 8 kB / 1.169 GB, free: 9.145 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02326/1.105, allocations: 11.11 MB / 1.18 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001241/1.105, allocations: 39.83 kB / 1.18 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001033/1.106, allocations: 61.62 kB / 1.18 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.009141/1.115, allocations: 4.296 MB / 1.185 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/1.115, allocations: 0 / 1.185 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/1.115, allocations: 0 / 1.185 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.903e-06/1.115, allocations: 0 / 1.185 GB, free: 9.613 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.003679/1.118, allocations: 1.158 MB / 1.186 GB, free: 8.406 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/1.119, allocations: 12.56 kB / 1.186 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001103/1.12, allocations: 91.69 kB / 1.186 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/1.12, allocations: 222.8 kB / 1.186 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/1.12, allocations: 15.94 kB / 1.186 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/1.12, allocations: 12 kB / 1.186 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/1.121, allocations: 452.4 kB / 1.186 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.121, allocations: 4 kB / 1.186 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/1.121, allocations: 11.97 kB / 1.186 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/1.121, allocations: 11.95 kB / 1.186 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/1.122, allocations: 0.5969 MB / 1.187 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/1.123, allocations: 0.8744 MB / 1.188 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/1.124, allocations: 246.4 kB / 1.188 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/1.124, allocations: 76.83 kB / 1.188 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08284/1.207, allocations: 35.33 MB / 1.223 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/1.207, allocations: 38.56 kB / 1.223 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 4.047e-06/1.207, allocations: 0 / 1.223 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001747/1.209, allocations: 422.7 kB / 1.223 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/1.209, allocations: 55.41 kB / 1.223 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/1.209, allocations: 139.9 kB / 1.223 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/1.209, allocations: 29.7 kB / 1.223 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.395e-05/1.209, allocations: 116.3 kB / 1.223 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/1.209, allocations: 86.75 kB / 1.224 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.011e-05/1.209, allocations: 4 kB / 1.224 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.21, allocations: 326.8 kB / 1.224 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/1.21, allocations: 79.95 kB / 1.224 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/1.21, allocations: 121.1 kB / 1.224 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/1.21, allocations: 95.86 kB / 1.224 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.21, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000752/1.211, allocations: 297.2 kB / 1.224 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/1.211, allocations: 4 kB / 1.224 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/1.211, allocations: 4 kB / 1.224 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/1.211, allocations: 4.156 kB / 1.224 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003009/1.211, allocations: 83.88 kB / 1.225 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/1.211, allocations: 4 kB / 1.225 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/1.212, allocations: 27.73 kB / 1.225 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/1.212, allocations: 19.98 kB / 1.225 GB, free: 13.22 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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): 30 * Array equations: 0 * 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.0001609/1.212, allocations: 133.7 kB / 1.225 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/1.212, allocations: 19.77 kB / 1.225 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/1.215, allocations: 2.343 MB / 1.227 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/1.215, allocations: 7.984 kB / 1.227 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/1.215, allocations: 4 kB / 1.227 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.215, allocations: 3.984 kB / 1.227 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/1.219, allocations: 3.424 MB / 1.23 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/1.219, allocations: 4 kB / 1.23 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/1.219, allocations: 55.89 kB / 1.23 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/1.219, allocations: 4 kB / 1.23 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/1.219, allocations: 4 kB / 1.23 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/1.219, allocations: 4 kB / 1.23 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.219, allocations: 7.984 kB / 1.23 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008399/1.22, allocations: 0.547 MB / 1.231 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/1.22, allocations: 132.6 kB / 1.231 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/1.22, allocations: 11.94 kB / 1.231 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/1.22, allocations: 15.98 kB / 1.231 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/1.22, allocations: 15.98 kB / 1.231 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/1.22, allocations: 23.92 kB / 1.231 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.061e-05/1.22, allocations: 105.3 kB / 1.231 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.01e-07/1.22, allocations: 0 / 1.231 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.005231/1.226, allocations: 1.69 MB / 1.233 GB, free: 4.516 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.009252/1.235, allocations: 1.934 MB / 1.235 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006872/1.236, allocations: 320.3 kB / 1.235 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.236, allocations: 0 / 1.235 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003175/1.236, allocations: 241.2 kB / 1.235 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/1.237, allocations: 72.16 kB / 1.235 GB, free: 1.945 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/1.238, allocations: 0.7969 MB / 1.236 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/1.238, allocations: 0.7664 MB / 1.237 GB, free: 344 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0006445/1.239, allocations: 405.1 kB / 1.237 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/1.239, allocations: 47.36 kB / 1.237 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of SimCode: time 4.51e-07/1.239, allocations: 0 / 1.237 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of Templates: time 0.8342/2.073, allocations: 60.38 MB / 1.296 GB, free: 202.3 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_10_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches