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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001565/0.001565, allocations: 108 kB / 15.61 MB, free: 152 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.001823/0.001823, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.668/2.668, allocations: 437 MB / 0.7103 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 71.89 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7131/0.7144, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1442/0.8586, allocations: 136.1 MB / 1.15 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02876/0.8874, allocations: 22.67 MB / 1.172 GB, free: 3.098 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.8876, allocations: 0 / 1.172 GB, free: 3.098 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.8879, allocations: 47.67 kB / 1.172 GB, free: 3.051 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003383/0.8883, allocations: 95.36 kB / 1.172 GB, free: 2.957 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.01724/0.9055, allocations: 6.941 MB / 1.179 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.906, allocations: 247.9 kB / 1.179 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.089e-05/0.906, allocations: 13.55 kB / 1.179 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.9064, allocations: 147.4 kB / 1.18 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.9066, allocations: 87.66 kB / 1.18 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.9066, allocations: 8 kB / 1.18 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02115/0.9278, allocations: 11.34 MB / 1.191 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.9279, allocations: 35.89 kB / 1.191 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.9281, allocations: 79.66 kB / 1.191 GB, free: 72 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01814/0.9462, allocations: 6.495 MB / 1.197 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.9463, allocations: 0 / 1.197 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.535e-06/0.9463, allocations: 4 kB / 1.197 GB, free: 9.559 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.9463, allocations: 0 / 1.197 GB, free: 9.559 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.003794/0.9501, allocations: 1.201 MB / 1.198 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.9502, allocations: 8.031 kB / 1.198 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.9513, allocations: 80.67 kB / 1.198 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.9516, allocations: 232 kB / 1.199 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.9516, allocations: 16.12 kB / 1.199 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.9517, allocations: 16 kB / 1.199 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.9528, allocations: 448.5 kB / 1.199 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.9529, allocations: 4 kB / 1.199 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.9529, allocations: 4 kB / 1.199 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.9529, allocations: 7.984 kB / 1.199 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.9541, allocations: 0.6008 MB / 1.2 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.9552, allocations: 0.8861 MB / 1.201 GB, free: 5.879 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.9561, allocations: 255.6 kB / 1.201 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.9562, allocations: 72.83 kB / 1.201 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09119/1.047, allocations: 35.05 MB / 1.235 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/1.047, allocations: 34.56 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/1.047, allocations: 3.938 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25): time 0.001814/1.049, allocations: 419.5 kB / 1.236 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/1.049, allocations: 59.34 kB / 1.236 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/1.05, allocations: 139.2 kB / 1.236 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/1.05, allocations: 33.7 kB / 1.236 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/1.05, allocations: 104.5 kB / 1.236 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.909e-05/1.05, allocations: 82.75 kB / 1.236 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/1.05, allocations: 89.5 kB / 1.236 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001265/1.05, allocations: 330.8 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/1.05, allocations: 79.95 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/1.051, allocations: 125.6 kB / 1.237 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/1.051, allocations: 219.2 kB / 1.237 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.051, allocations: 0 / 1.237 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007794/1.052, allocations: 298.9 kB / 1.237 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/1.052, allocations: 11.98 kB / 1.237 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/1.052, allocations: 0 / 1.237 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/1.052, allocations: 4 kB / 1.237 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/1.052, allocations: 79.88 kB / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/1.052, allocations: 3.938 kB / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/1.052, allocations: 27.69 kB / 1.237 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/1.052, allocations: 19.98 kB / 1.237 GB, free: 13.18 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.0001383/1.053, allocations: 130 kB / 1.237 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/1.053, allocations: 19.8 kB / 1.237 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002394/1.055, allocations: 2.343 MB / 1.24 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/1.055, allocations: 15.97 kB / 1.24 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/1.055, allocations: 4 kB / 1.24 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.055, allocations: 7.875 kB / 1.24 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/1.058, allocations: 3.423 MB / 1.243 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/1.058, allocations: 0 / 1.243 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/1.059, allocations: 51.95 kB / 1.243 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.523e-06/1.059, allocations: 4 kB / 1.243 GB, free: 7.062 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/1.059, allocations: 19.86 kB / 1.243 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/1.059, allocations: 0 / 1.243 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/1.059, allocations: 0 / 1.243 GB, free: 7.043 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008093/1.06, allocations: 0.5418 MB / 1.244 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/1.06, allocations: 148.4 kB / 1.244 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/1.06, allocations: 7.938 kB / 1.244 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/1.06, allocations: 15.98 kB / 1.244 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/1.06, allocations: 15.98 kB / 1.244 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.918e-05/1.06, allocations: 19.98 kB / 1.244 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.381e-05/1.06, allocations: 104.7 kB / 1.244 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.06, allocations: 0 / 1.244 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004548/1.065, allocations: 1.687 MB / 1.246 GB, free: 4.473 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.008964/1.074, allocations: 1.946 MB / 1.247 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008472/1.075, allocations: 332.3 kB / 1.248 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.075, allocations: 0 / 1.248 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003502/1.075, allocations: 249.7 kB / 1.248 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/1.076, allocations: 60.98 kB / 1.248 GB, free: 1.887 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/1.077, allocations: 0.6274 MB / 1.249 GB, free: 1.234 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/1.077, allocations: 0.7699 MB / 1.249 GB, free: 452 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000564/1.078, allocations: 405 kB / 1.25 GB, free: 48 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5381/1.616, allocations: 49.83 kB / 1.25 GB, free: 229 MB / 0.9981 GB Notification: Performance of SimCode: time 1.353e-06/1.616, allocations: 0 / 1.25 GB, free: 229 MB / 0.9981 GB Notification: Performance of Templates: time 0.08105/1.697, allocations: 59.62 MB / 1.308 GB, free: 189.6 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