Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_10_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_10_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.001119/0.001119, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.0009748/0.0009748, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.317/1.317, 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 10.1.0-maint.10.0.x/package.mo): time 2.373/2.373, allocations: 437.1 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 57.31 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2939, allocations: 151.6 MB / 1.019 GB, free: 9.867 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.6122/0.9061, allocations: 135.5 MB / 1.151 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.008357/0.9145, allocations: 7.923 MB / 1.159 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.277e-05/0.9146, allocations: 0 / 1.159 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.9148, allocations: 24.52 kB / 1.159 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 4.785e-05/0.9149, allocations: 15.2 kB / 1.159 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003804/0.9187, allocations: 1.465 MB / 1.16 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.9188, allocations: 76.14 kB / 1.16 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.9189, allocations: 5.359 kB / 1.16 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.919, allocations: 48.59 kB / 1.16 GB, free: 8.879 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.9191, allocations: 38.95 kB / 1.16 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.9191, allocations: 3.344 kB / 1.16 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.9234, allocations: 2.702 MB / 1.163 GB, free: 8.184 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 2.704e-05/0.9235, allocations: 14.91 kB / 1.163 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.9235, allocations: 31.27 kB / 1.163 GB, free: 8.16 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.9255, allocations: 1.379 MB / 1.165 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.9255, allocations: 0 / 1.165 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9255, allocations: 0 / 1.165 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.9255, allocations: 0 / 1.165 GB, free: 7.344 MB / 0.8731 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.0009165/0.9265, allocations: 0.489 MB / 1.165 GB, free: 6.902 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.9265, allocations: 8.688 kB / 1.165 GB, free: 6.902 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003662/0.9269, allocations: 30.19 kB / 1.165 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.771e-05/0.927, allocations: 170.4 kB / 1.165 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.576e-05/0.9271, allocations: 35.61 kB / 1.165 GB, free: 6.648 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.9271, allocations: 10.67 kB / 1.165 GB, free: 6.641 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.9274, allocations: 125.1 kB / 1.165 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.9274, allocations: 0 / 1.165 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.9275, allocations: 5.406 kB / 1.165 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.9275, allocations: 2.438 kB / 1.165 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003089/0.9278, allocations: 123.8 kB / 1.165 GB, free: 6.492 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.0004451/0.9282, allocations: 381.3 kB / 1.166 GB, free: 6.094 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.9285, allocations: 124.5 kB / 1.166 GB, free: 6.02 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.318e-05/0.9286, allocations: 49.72 kB / 1.166 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01116/0.9398, allocations: 4.227 MB / 1.17 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.9398, allocations: 40.97 kB / 1.17 GB, free: 3.215 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=13): time 3.226e-06/0.9398, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13): time 0.0005482/0.9404, allocations: 163.9 kB / 1.17 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.9404, allocations: 56.69 kB / 1.17 GB, free: 3.055 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.254e-05/0.9405, allocations: 95.45 kB / 1.17 GB, free: 2.957 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.9405, allocations: 30.8 kB / 1.171 GB, free: 2.922 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 3.992e-05/0.9406, allocations: 81.27 kB / 1.171 GB, free: 2.84 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.9406, allocations: 44.34 kB / 1.171 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.9407, allocations: 33.98 kB / 1.171 GB, free: 2.77 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.393e-05/0.9408, allocations: 324 kB / 1.171 GB, free: 2.445 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.748e-05/0.9408, allocations: 21.75 kB / 1.171 GB, free: 2.438 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.01e-05/0.9409, allocations: 30.73 kB / 1.171 GB, free: 2.422 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.941, allocations: 70.66 kB / 1.171 GB, free: 2.383 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.941, allocations: 1.219 kB / 1.171 GB, free: 2.383 MB / 0.8731 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001827/0.9412, allocations: 105.5 kB / 1.171 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.9412, allocations: 5.75 kB / 1.171 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.9412, allocations: 0 / 1.171 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.9413, allocations: 9.156 kB / 1.171 GB, free: 2.309 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.9414, allocations: 21.08 kB / 1.171 GB, free: 2.305 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.9414, allocations: 1.281 kB / 1.171 GB, free: 2.305 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.533e-05/0.9415, allocations: 13.09 kB / 1.171 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.9415, allocations: 10.73 kB / 1.171 GB, free: 2.285 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 7.563e-05/0.9416, allocations: 112.6 kB / 1.171 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.756e-05/0.9416, allocations: 3.406 kB / 1.171 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004544/0.9421, allocations: 371.8 kB / 1.172 GB, free: 1.938 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.9421, allocations: 11.34 kB / 1.172 GB, free: 1.93 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.9421, allocations: 0 / 1.172 GB, free: 1.93 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.9421, allocations: 4.953 kB / 1.172 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.9424, allocations: 281.9 kB / 1.172 GB, free: 1.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.9424, allocations: 3.938 kB / 1.172 GB, free: 1.648 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.955e-05/0.9425, allocations: 21.42 kB / 1.172 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.9425, allocations: 0 / 1.172 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.9425, allocations: 6.156 kB / 1.172 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.9425, allocations: 0 / 1.172 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.9425, allocations: 4.25 kB / 1.172 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.9429, allocations: 339 kB / 1.172 GB, free: 1.395 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.852e-05/0.943, allocations: 103.5 kB / 1.172 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.943, allocations: 5.094 kB / 1.172 GB, free: 1.277 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.9431, allocations: 7.656 kB / 1.172 GB, free: 1.273 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.9432, allocations: 12.31 kB / 1.172 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.9432, allocations: 11.48 kB / 1.172 GB, free: 1.258 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.793e-05/0.9432, allocations: 81.97 kB / 1.173 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9432, allocations: 0 / 1.173 GB, free: 1.18 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001207/0.9445, allocations: 306.2 kB / 1.173 GB, free: 1.141 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.001254/0.9457, allocations: 388.4 kB / 1.173 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.946, allocations: 132.3 kB / 1.173 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.946, allocations: 0 / 1.173 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.9461, allocations: 109.9 kB / 1.173 GB, free: 0.8594 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.9464, allocations: 21.95 kB / 1.173 GB, free: 0.8477 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.9469, allocations: 309.3 kB / 1.174 GB, free: 0.625 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.9472, allocations: 0.7169 MB / 1.174 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.9474, allocations: 31.72 kB / 1.175 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.9474, allocations: 17.53 kB / 1.175 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of SimCode: time 2.31e-07/0.9474, allocations: 0 / 1.175 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of Templates: time 0.0145/0.9619, allocations: 9.774 MB / 1.184 GB, free: 10.75 MB / 0.8887 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches