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.001443/0.001443, allocations: 101.2 kB / 16.37 MB, free: 6.469 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.001517/0.001517, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.262/2.262, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 62.73 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.8558/1.162, allocations: 135.6 MB / 1.084 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01137/1.174, allocations: 7.916 MB / 1.091 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/1.174, allocations: 0 / 1.091 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002081/1.174, allocations: 22.28 kB / 1.091 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.047e-05/1.174, allocations: 25.89 kB / 1.091 GB, free: 7.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.006998/1.181, allocations: 1.455 MB / 1.093 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002894/1.182, allocations: 78 kB / 1.093 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.963e-05/1.182, allocations: 8.031 kB / 1.093 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/1.182, allocations: 47.03 kB / 1.093 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/1.182, allocations: 32.53 kB / 1.093 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/1.182, allocations: 3 kB / 1.093 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008246/1.19, allocations: 2.713 MB / 1.096 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.663e-05/1.19, allocations: 13.28 kB / 1.096 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000115/1.19, allocations: 35.06 kB / 1.096 GB, free: 7.617 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00535/1.196, allocations: 1.374 MB / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/1.196, allocations: 0.9062 kB / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.354e-06/1.196, allocations: 0 / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.297e-06/1.196, allocations: 1.938 kB / 1.097 GB, free: 7.59 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.00267/1.199, allocations: 0.489 MB / 1.097 GB, free: 23.18 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/1.199, allocations: 12.59 kB / 1.097 GB, free: 23.18 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004868/1.199, allocations: 25.56 kB / 1.097 GB, free: 23.18 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/1.199, allocations: 168.3 kB / 1.098 GB, free: 22.98 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-05/1.199, allocations: 32.38 kB / 1.098 GB, free: 22.95 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/1.199, allocations: 8.781 kB / 1.098 GB, free: 22.95 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/1.2, allocations: 124.4 kB / 1.098 GB, free: 22.91 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/1.2, allocations: 0.5938 kB / 1.098 GB, free: 22.91 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/1.2, allocations: 7.062 kB / 1.098 GB, free: 22.91 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/1.2, allocations: 6.953 kB / 1.098 GB, free: 22.91 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/1.2, allocations: 114.5 kB / 1.098 GB, free: 22.91 MB / 0.8731 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.0005672/1.201, allocations: 385.6 kB / 1.098 GB, free: 22.57 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/1.201, allocations: 124.9 kB / 1.098 GB, free: 22.55 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.066e-05/1.201, allocations: 51.09 kB / 1.098 GB, free: 22.54 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01386/1.215, allocations: 4.226 MB / 1.103 GB, free: 20.95 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.911e-05/1.215, allocations: 34.05 kB / 1.103 GB, free: 20.91 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 3.527e-06/1.215, allocations: 0 / 1.103 GB, free: 20.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0007202/1.216, allocations: 168.6 kB / 1.103 GB, free: 20.87 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/1.216, allocations: 56.38 kB / 1.103 GB, free: 20.8 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.914e-05/1.216, allocations: 98.27 kB / 1.103 GB, free: 20.71 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/1.216, allocations: 30.39 kB / 1.103 GB, free: 20.68 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/1.216, allocations: 83.64 kB / 1.103 GB, free: 20.59 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.839e-05/1.216, allocations: 40.94 kB / 1.103 GB, free: 20.57 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.568e-05/1.216, allocations: 31.86 kB / 1.103 GB, free: 20.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001565/1.216, allocations: 322.5 kB / 1.103 GB, free: 20.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.671e-05/1.216, allocations: 25.31 kB / 1.103 GB, free: 20.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.697e-05/1.217, allocations: 25.94 kB / 1.103 GB, free: 20.23 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/1.217, allocations: 75.5 kB / 1.103 GB, free: 20.22 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.217, allocations: 0 / 1.103 GB, free: 20.22 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001988/1.217, allocations: 104.2 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/1.217, allocations: 4.875 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/1.217, allocations: 1.312 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/1.217, allocations: 1.516 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/1.217, allocations: 27.47 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/1.217, allocations: 2.156 kB / 1.104 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.806e-05/1.217, allocations: 13.81 kB / 1.104 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/1.217, allocations: 3.891 kB / 1.104 GB, free: 20.18 MB / 0.8731 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.0001063/1.217, allocations: 117 kB / 1.104 GB, free: 20.07 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/1.217, allocations: 5.156 kB / 1.104 GB, free: 20.07 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000538/1.218, allocations: 374.2 kB / 1.104 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/1.218, allocations: 9.547 kB / 1.104 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.218, allocations: 1.859 kB / 1.104 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.218, allocations: 0.6562 kB / 1.104 GB, free: 19.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003407/1.218, allocations: 286.7 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/1.218, allocations: 0 / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/1.218, allocations: 20.97 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/1.218, allocations: 1.906 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/1.218, allocations: 11.08 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/1.218, allocations: 5.344 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.218, allocations: 1.312 kB / 1.104 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003992/1.219, allocations: 331.5 kB / 1.105 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-05/1.219, allocations: 105.5 kB / 1.105 GB, free: 19.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/1.219, allocations: 1.484 kB / 1.105 GB, free: 19.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/1.219, allocations: 10.66 kB / 1.105 GB, free: 19.52 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/1.219, allocations: 9.625 kB / 1.105 GB, free: 19.52 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/1.219, allocations: 5.031 kB / 1.105 GB, free: 19.52 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.016e-05/1.219, allocations: 84.12 kB / 1.105 GB, free: 19.45 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1e-07/1.219, allocations: 0 / 1.105 GB, free: 19.45 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002288/1.222, allocations: 306.3 kB / 1.105 GB, free: 19.43 MB / 0.8731 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.001998/1.224, allocations: 404 kB / 1.106 GB, free: 19.32 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003058/1.224, allocations: 125.5 kB / 1.106 GB, free: 19.32 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/1.224, allocations: 3.172 kB / 1.106 GB, free: 19.32 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000153/1.224, allocations: 111.7 kB / 1.106 GB, free: 19.32 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/1.224, allocations: 16.34 kB / 1.106 GB, free: 19.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006496/1.225, allocations: 305.9 kB / 1.106 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/1.225, allocations: 0.7162 MB / 1.107 GB, free: 18.46 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001715/1.226, allocations: 31.84 kB / 1.107 GB, free: 18.46 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/1.226, allocations: 19.89 kB / 1.107 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.226, allocations: 0.9375 kB / 1.107 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of Templates: time 0.02562/1.251, allocations: 9.777 MB / 1.116 GB, free: 17.95 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 -s cvode -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