Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.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.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck") translateModel(Buildings.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008067/0.008067, allocations: 101.2 kB / 15.88 MB, free: 6.328 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.001871/0.001871, allocations: 193.3 kB / 16.79 MB, free: 6.254 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.42/1.42, allocations: 222.9 MB / 240.5 MB, free: 4.438 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.471/2.471, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.001441, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6444/0.6459, allocations: 140.4 MB / 0.9496 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.165/0.811, allocations: 133.5 MB / 1.08 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01985/0.8309, allocations: 8.502 MB / 1.088 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.754e-05/0.831, allocations: 4 kB / 1.088 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.8313, allocations: 19.89 kB / 1.088 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.292e-05/0.8314, allocations: 11.92 kB / 1.088 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00619/0.8376, allocations: 1.15 MB / 1.089 GB, free: 2.398 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.8378, allocations: 79.58 kB / 1.089 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.291e-05/0.8379, allocations: 4 kB / 1.089 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.8381, allocations: 47.84 kB / 1.09 GB, free: 2.27 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.8382, allocations: 35.83 kB / 1.09 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.8383, allocations: 7.938 kB / 1.09 GB, free: 2.227 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008432/0.8467, allocations: 2.661 MB / 1.092 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.8468, allocations: 11.98 kB / 1.092 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.796e-05/0.8469, allocations: 31.84 kB / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002478/0.8494, allocations: 0.9162 MB / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8495, allocations: 0 / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.655e-06/0.8495, allocations: 4 kB / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.8495, allocations: 0 / 1.093 GB, free: 14.6 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001674/0.8512, allocations: 0.4953 MB / 1.094 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.8512, allocations: 8.031 kB / 1.094 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007082/0.852, allocations: 24.81 kB / 1.094 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.8522, allocations: 172.3 kB / 1.094 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.8523, allocations: 30.27 kB / 1.094 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.8523, allocations: 11.94 kB / 1.094 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006459/0.853, allocations: 120.1 kB / 1.094 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.853, allocations: 0 / 1.094 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.8531, allocations: 8 kB / 1.094 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.8531, allocations: 0 / 1.094 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.8537, allocations: 111.9 kB / 1.094 GB, free: 13.53 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007895/0.8545, allocations: 388 kB / 1.094 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.855, allocations: 118.6 kB / 1.095 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.8552, allocations: 56.77 kB / 1.095 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02213/0.8773, allocations: 4.21 MB / 1.099 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.233e-05/0.8774, allocations: 34.55 kB / 1.099 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 3.797e-06/0.8775, allocations: 0 / 1.099 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0009109/0.8784, allocations: 171.6 kB / 1.099 GB, free: 8.164 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.8785, allocations: 55.41 kB / 1.099 GB, free: 8.098 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.8786, allocations: 101.9 kB / 1.099 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.8787, allocations: 25.7 kB / 1.099 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.854e-05/0.8787, allocations: 84.12 kB / 1.099 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/0.8788, allocations: 43.53 kB / 1.099 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.8789, allocations: 33.62 kB / 1.099 GB, free: 7.789 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.8791, allocations: 318.8 kB / 1.1 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.8792, allocations: 23.98 kB / 1.1 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.25e-05/0.8793, allocations: 35.98 kB / 1.1 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.8796, allocations: 65.61 kB / 1.1 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8796, allocations: 0 / 1.1 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003447/0.8799, allocations: 107.1 kB / 1.1 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.88, allocations: 10.19 kB / 1.1 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.88, allocations: 3.984 kB / 1.1 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.88, allocations: 0 / 1.1 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.8802, allocations: 20 kB / 1.1 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.8803, allocations: 11.92 kB / 1.1 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.8804, allocations: 7.844 kB / 1.1 GB, free: 7.184 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.8804, allocations: 8 kB / 1.1 GB, free: 7.176 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * 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.0001336/0.8806, allocations: 117.8 kB / 1.1 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.734e-05/0.8807, allocations: 4.188 kB / 1.1 GB, free: 7.047 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008203/0.8815, allocations: 375.6 kB / 1.1 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.8815, allocations: 11.98 kB / 1.1 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.8816, allocations: 0 / 1.1 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.8816, allocations: 7.875 kB / 1.1 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.8821, allocations: 281.4 kB / 1.101 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.8821, allocations: 0 / 1.101 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.8823, allocations: 23.92 kB / 1.101 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.8823, allocations: 4 kB / 1.101 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.8824, allocations: 4 kB / 1.101 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.8824, allocations: 0 / 1.101 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8824, allocations: 0 / 1.101 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.883, allocations: 334.9 kB / 1.101 GB, free: 5.953 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.8832, allocations: 104.8 kB / 1.101 GB, free: 5.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.8832, allocations: 0 / 1.101 GB, free: 5.832 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.8835, allocations: 11.98 kB / 1.101 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.8835, allocations: 7.984 kB / 1.101 GB, free: 5.812 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.8836, allocations: 7.938 kB / 1.101 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.275e-05/0.8836, allocations: 83.28 kB / 1.101 GB, free: 5.723 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8837, allocations: 4 kB / 1.101 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001606/0.8853, allocations: 295.9 kB / 1.101 GB, free: 5.43 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($cse1.region3boundary,$cse2.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002524/0.8878, allocations: 402.9 kB / 1.102 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003733/0.8882, allocations: 127.9 kB / 1.102 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.8882, allocations: 0 / 1.102 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.8885, allocations: 111.9 kB / 1.102 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005627/0.889, allocations: 11.98 kB / 1.102 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009009/0.89, allocations: 409.6 kB / 1.102 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.8904, allocations: 0.7169 MB / 1.103 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.8905, allocations: 19.42 kB / 1.103 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of SimCode: time 5.61e-07/0.8905, allocations: 0 / 1.103 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of Templates: time 0.01907/0.9096, allocations: 6.748 MB / 1.11 GB, free: 12.83 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches