Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001517/0.001517, allocations: 110.4 kB / 15.99 MB, free: 6.363 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.001488/0.001488, allocations: 190.5 kB / 16.91 MB, free: 6.195 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.372/1.372, allocations: 222.9 MB / 240.6 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 482.4 MB / 0.755 GB, free: 7.188 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 67.14 kB / 0.924 GB, free: 340 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7153/0.7172, allocations: 162.2 MB / 1.082 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1599/0.8772, allocations: 134.2 MB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02931/0.9065, allocations: 22.99 MB / 1.236 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.9067, allocations: 3.938 kB / 1.236 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.907, allocations: 39.81 kB / 1.236 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.9073, allocations: 79.48 kB / 1.236 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.01619/0.9235, allocations: 6.151 MB / 1.242 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.924, allocations: 243.9 kB / 1.242 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.812e-05/0.924, allocations: 9.562 kB / 1.242 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.9243, allocations: 139.4 kB / 1.242 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.9245, allocations: 95.66 kB / 1.242 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.9245, allocations: 8 kB / 1.242 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02076/0.9453, allocations: 11.47 MB / 1.254 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.9455, allocations: 35.89 kB / 1.254 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.9456, allocations: 79.64 kB / 1.254 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008345/0.954, allocations: 4.355 MB / 1.258 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.954, allocations: 0 / 1.258 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.124e-06/0.954, allocations: 0 / 1.258 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.954, allocations: 0 / 1.258 GB, free: 10.77 MB / 0.9825 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.003489/0.9575, allocations: 1.201 MB / 1.259 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.9576, allocations: 12.03 kB / 1.259 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.9586, allocations: 88.66 kB / 1.259 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.9589, allocations: 224 kB / 1.26 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.9589, allocations: 20.11 kB / 1.26 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.959, allocations: 12 kB / 1.26 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.9603, allocations: 468.2 kB / 1.26 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.9603, allocations: 0 / 1.26 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.9603, allocations: 12 kB / 1.26 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.9603, allocations: 4 kB / 1.26 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.9617, allocations: 0.5931 MB / 1.261 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.9628, allocations: 0.8861 MB / 1.261 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009046/0.9638, allocations: 252.1 kB / 1.262 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.9639, allocations: 69.28 kB / 1.262 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08517/1.049, allocations: 35.05 MB / 1.296 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/1.049, allocations: 38.56 kB / 1.296 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/1.049, allocations: 0 / 1.296 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of matching and sorting (n=25): time 0.001861/1.051, allocations: 418.2 kB / 1.296 GB, free: 148 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/1.051, allocations: 55.39 kB / 1.296 GB, free: 80 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/1.051, allocations: 137.8 kB / 1.297 GB, free: 15.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.392e-05/1.051, allocations: 29.7 kB / 1.297 GB, free: 15.9 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.538e-05/1.051, allocations: 112.3 kB / 1.297 GB, free: 15.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.86e-05/1.051, allocations: 86.75 kB / 1.297 GB, free: 15.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/1.052, allocations: 81.61 kB / 1.297 GB, free: 15.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001471/1.052, allocations: 326.8 kB / 1.297 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/1.052, allocations: 83.94 kB / 1.297 GB, free: 15.2 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/1.052, allocations: 126.3 kB / 1.297 GB, free: 15.06 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/1.053, allocations: 220.3 kB / 1.298 GB, free: 14.83 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.053, allocations: 0 / 1.298 GB, free: 14.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007902/1.054, allocations: 301.2 kB / 1.298 GB, free: 14.53 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.054, allocations: 4.156 kB / 1.298 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/1.054, allocations: 4 kB / 1.298 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/1.054, allocations: 4 kB / 1.298 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/1.054, allocations: 83.88 kB / 1.298 GB, free: 14.44 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/1.054, allocations: 4 kB / 1.298 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/1.054, allocations: 15.78 kB / 1.298 GB, free: 14.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/1.054, allocations: 31.97 kB / 1.298 GB, free: 14.39 MB / 1.029 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.0001449/1.054, allocations: 128.1 kB / 1.298 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001824/1.054, allocations: 15.81 kB / 1.298 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002592/1.057, allocations: 2.357 MB / 1.3 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/1.057, allocations: 11.98 kB / 1.301 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/1.057, allocations: 3.938 kB / 1.301 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/1.057, allocations: 7.938 kB / 1.301 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/1.061, allocations: 3.419 MB / 1.304 GB, free: 8.328 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/1.061, allocations: 4 kB / 1.304 GB, free: 8.324 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/1.061, allocations: 51.94 kB / 1.304 GB, free: 8.273 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/1.061, allocations: 4 kB / 1.304 GB, free: 8.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/1.061, allocations: 7.938 kB / 1.304 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/1.061, allocations: 8 kB / 1.304 GB, free: 8.254 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/1.061, allocations: 0 / 1.304 GB, free: 8.254 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000819/1.062, allocations: 0.5541 MB / 1.304 GB, free: 7.684 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/1.062, allocations: 136.6 kB / 1.305 GB, free: 7.531 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/1.062, allocations: 7.938 kB / 1.305 GB, free: 7.523 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/1.062, allocations: 15.98 kB / 1.305 GB, free: 7.508 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/1.062, allocations: 23.97 kB / 1.305 GB, free: 7.484 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/1.062, allocations: 12 kB / 1.305 GB, free: 7.473 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.947e-05/1.062, allocations: 109.6 kB / 1.305 GB, free: 7.367 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.31e-07/1.062, allocations: 0 / 1.305 GB, free: 7.367 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004082/1.067, allocations: 1.687 MB / 1.306 GB, free: 5.68 MB / 1.029 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.007625/1.074, allocations: 1.938 MB / 1.308 GB, free: 3.73 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008191/1.075, allocations: 332.3 kB / 1.309 GB, free: 3.402 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.075, allocations: 0 / 1.309 GB, free: 3.402 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003427/1.075, allocations: 237.5 kB / 1.309 GB, free: 3.168 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/1.076, allocations: 68.2 kB / 1.309 GB, free: 3.102 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/1.077, allocations: 0.7851 MB / 1.31 GB, free: 2.277 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/1.078, allocations: 0.7661 MB / 1.31 GB, free: 1.488 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/1.078, allocations: 51.41 kB / 1.31 GB, free: 1.438 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/1.078, allocations: 0 / 1.31 GB, free: 1.438 MB / 1.029 GB Notification: Performance of Templates: time 0.04935/1.127, allocations: 32.8 MB / 1.342 GB, free: 0.6094 MB / 1.061 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_latest_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches