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.000923/0.000923, allocations: 92.08 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 179.2 kB / 16.92 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.285 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.652/2.652, allocations: 437.8 MB / 0.7128 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003747, allocations: 11.94 kB / 0.8735 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7263/0.7267, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1375/0.8643, allocations: 132.2 MB / 1.153 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02981/0.8941, allocations: 24.78 MB / 1.177 GB, free: 2.293 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.8944, allocations: 0 / 1.177 GB, free: 2.293 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003017/0.8947, allocations: 51.72 kB / 1.177 GB, free: 2.242 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.895, allocations: 83.5 kB / 1.177 GB, free: 2.16 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0165/0.9115, allocations: 5.478 MB / 1.182 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.912, allocations: 311.8 kB / 1.183 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.98e-05/0.9121, allocations: 9.562 kB / 1.183 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003368/0.9124, allocations: 131.5 kB / 1.183 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.9126, allocations: 95.59 kB / 1.183 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.9126, allocations: 8 kB / 1.183 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02141/0.9341, allocations: 11.52 MB / 1.194 GB, free: 0.6172 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.9342, allocations: 31.89 kB / 1.194 GB, free: 0.5859 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.9344, allocations: 109.3 kB / 1.194 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.008145/0.9425, allocations: 4.315 MB / 1.199 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.9425, allocations: 0 / 1.199 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.034e-06/0.9426, allocations: 0 / 1.199 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.9426, allocations: 4 kB / 1.199 GB, free: 12.14 MB / 0.9512 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.003528/0.9461, allocations: 1.158 MB / 1.2 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.9461, allocations: 8.031 kB / 1.2 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.9473, allocations: 96.66 kB / 1.2 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.9476, allocations: 224 kB / 1.2 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.9476, allocations: 16.12 kB / 1.2 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.9477, allocations: 15.94 kB / 1.2 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.9489, allocations: 460.5 kB / 1.201 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.9489, allocations: 0 / 1.201 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.949, allocations: 12 kB / 1.201 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.949, allocations: 4 kB / 1.201 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.9502, allocations: 0.5969 MB / 1.201 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.9514, allocations: 0.8822 MB / 1.202 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008174/0.9522, allocations: 250.3 kB / 1.202 GB, free: 8.242 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.9524, allocations: 80.77 kB / 1.202 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08838/1.041, allocations: 35.33 MB / 1.237 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/1.041, allocations: 38.56 kB / 1.237 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 2.454e-06/1.041, allocations: 0 / 1.237 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001746/1.043, allocations: 424.4 kB / 1.237 GB, free: 1.27 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/1.043, allocations: 51.41 kB / 1.237 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/1.043, allocations: 137.8 kB / 1.237 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/1.043, allocations: 37.64 kB / 1.237 GB, free: 1.02 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/1.043, allocations: 112.3 kB / 1.238 GB, free: 0.9062 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.258e-05/1.043, allocations: 86.75 kB / 1.238 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/1.043, allocations: 21.72 kB / 1.238 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001116/1.043, allocations: 326.8 kB / 1.238 GB, free: 476 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/1.043, allocations: 83.94 kB / 1.238 GB, free: 392 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/1.044, allocations: 129.1 kB / 1.238 GB, free: 244 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/1.044, allocations: 211.7 kB / 1.238 GB, free: 16 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.044, allocations: 4 kB / 1.238 GB, free: 12 kB / 0.9825 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007231/1.045, allocations: 301.2 kB / 1.239 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/1.045, allocations: 5.875 kB / 1.239 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/1.045, allocations: 4 kB / 1.239 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/1.045, allocations: 4 kB / 1.239 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/1.045, allocations: 79.88 kB / 1.239 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.045, allocations: 4 kB / 1.239 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/1.045, allocations: 23.78 kB / 1.239 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/1.045, allocations: 27.97 kB / 1.239 GB, free: 15.57 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001504/1.045, allocations: 130.5 kB / 1.239 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/1.046, allocations: 15.81 kB / 1.239 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/1.048, allocations: 2.35 MB / 1.241 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/1.048, allocations: 11.98 kB / 1.241 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/1.048, allocations: 0 / 1.241 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/1.048, allocations: 7.922 kB / 1.241 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/1.051, allocations: 3.427 MB / 1.245 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.051, allocations: 4 kB / 1.245 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/1.052, allocations: 55.95 kB / 1.245 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/1.052, allocations: 0 / 1.245 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/1.052, allocations: 11.94 kB / 1.245 GB, free: 9.426 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.052, allocations: 3.938 kB / 1.245 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.052, allocations: 0 / 1.245 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000774/1.053, allocations: 0.5457 MB / 1.245 GB, free: 8.859 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/1.053, allocations: 144.5 kB / 1.245 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/1.053, allocations: 7.938 kB / 1.245 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/1.053, allocations: 20 kB / 1.245 GB, free: 8.672 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.082e-05/1.053, allocations: 23.95 kB / 1.245 GB, free: 8.648 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/1.053, allocations: 15.98 kB / 1.245 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.369e-05/1.053, allocations: 103.3 kB / 1.246 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.053, allocations: 0 / 1.246 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004214/1.057, allocations: 1.687 MB / 1.247 GB, free: 6.844 MB / 0.9981 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 (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.008322/1.066, allocations: 1.934 MB / 1.249 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006433/1.066, allocations: 321.4 kB / 1.249 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.066, allocations: 0 / 1.249 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003194/1.067, allocations: 240.5 kB / 1.25 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/1.067, allocations: 69.53 kB / 1.25 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/1.068, allocations: 0.8231 MB / 1.25 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/1.069, allocations: 0.7699 MB / 1.251 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/1.069, allocations: 55.41 kB / 1.251 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/1.069, allocations: 0 / 1.251 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of Templates: time 0.5401/1.609, allocations: 32.76 MB / 1.283 GB, free: 215.4 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches