Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck") translateModel(BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005469/0.005469, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001188/0.001188, allocations: 186.3 kB / 16.67 MB, free: 5.977 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 / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001964/0.001964, allocations: 282.5 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9456/0.9456, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 99.78 kB / 0.6814 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1502, allocations: 86.97 MB / 0.7664 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck): time 0.4652/0.6155, allocations: 135.6 MB / 0.8988 GB, free: 11.34 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.008747/0.6243, allocations: 7.925 MB / 0.9065 GB, free: 3.402 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.309e-05/0.6243, allocations: 0 / 0.9065 GB, free: 3.402 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.6245, allocations: 15.91 kB / 0.9065 GB, free: 3.387 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.674e-05/0.6246, allocations: 23.78 kB / 0.9065 GB, free: 3.363 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003534/0.6282, allocations: 1.466 MB / 0.908 GB, free: 1.902 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.6283, allocations: 79.58 kB / 0.908 GB, free: 1.824 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.174e-05/0.6283, allocations: 11.97 kB / 0.9081 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.6285, allocations: 43.84 kB / 0.9081 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.6286, allocations: 35.84 kB / 0.9081 GB, free: 1.734 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.6286, allocations: 4 kB / 0.9081 GB, free: 1.73 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00441/0.633, allocations: 2.708 MB / 0.9108 GB, free: 15.02 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 3.028e-05/0.6331, allocations: 15.97 kB / 0.9108 GB, free: 15 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 5.284e-05/0.6331, allocations: 31.8 kB / 0.9108 GB, free: 14.97 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002413/0.6356, allocations: 1.367 MB / 0.9122 GB, free: 13.61 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.6356, allocations: 7.984 kB / 0.9122 GB, free: 13.6 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6356, allocations: 4 kB / 0.9122 GB, free: 13.59 MB / 0.67 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.6356, allocations: 0 / 0.9122 GB, free: 13.59 MB / 0.67 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.001143/0.6367, allocations: 0.4958 MB / 0.9127 GB, free: 13.05 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.6368, allocations: 8.031 kB / 0.9127 GB, free: 13.04 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003764/0.6372, allocations: 20.91 kB / 0.9127 GB, free: 13.02 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.6373, allocations: 180.2 kB / 0.9129 GB, free: 12.81 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/0.6374, allocations: 34.45 kB / 0.9129 GB, free: 12.77 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.6374, allocations: 7.938 kB / 0.9129 GB, free: 12.76 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.6378, allocations: 121.6 kB / 0.913 GB, free: 12.64 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.6378, allocations: 0 / 0.913 GB, free: 12.64 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.6378, allocations: 4 kB / 0.913 GB, free: 12.63 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.6378, allocations: 0 / 0.913 GB, free: 12.63 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.6381, allocations: 119.9 kB / 0.9131 GB, free: 12.52 MB / 0.67 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.0004841/0.6386, allocations: 380 kB / 0.9135 GB, free: 12.08 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.6389, allocations: 122.6 kB / 0.9136 GB, free: 11.95 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.036e-05/0.639, allocations: 52.83 kB / 0.9137 GB, free: 11.9 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.6501, allocations: 4.226 MB / 0.9178 GB, free: 7.355 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.6502, allocations: 42.56 kB / 0.9178 GB, free: 7.305 MB / 0.67 GB Notification: Performance of pre-optimization done (n=13): time 3.296e-06/0.6502, allocations: 0 / 0.9178 GB, free: 7.305 MB / 0.67 GB Notification: Performance of matching and sorting (n=13): time 0.0005451/0.6508, allocations: 165.5 kB / 0.918 GB, free: 7.137 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.6508, allocations: 51.41 kB / 0.918 GB, free: 7.074 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.242e-05/0.6509, allocations: 101.8 kB / 0.9181 GB, free: 6.965 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.6509, allocations: 25.7 kB / 0.9182 GB, free: 6.934 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.651, allocations: 92.05 kB / 0.9182 GB, free: 6.84 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.651, allocations: 39.53 kB / 0.9183 GB, free: 6.801 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.6511, allocations: 33.7 kB / 0.9183 GB, free: 6.762 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.6512, allocations: 318.8 kB / 0.9186 GB, free: 6.441 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.804e-05/0.6513, allocations: 27.98 kB / 0.9186 GB, free: 6.414 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.761e-05/0.6513, allocations: 27.48 kB / 0.9187 GB, free: 6.391 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.6514, allocations: 72.78 kB / 0.9187 GB, free: 6.316 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6514, allocations: 0 / 0.9187 GB, free: 6.316 MB / 0.67 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001817/0.6516, allocations: 109.6 kB / 0.9188 GB, free: 6.203 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.6517, allocations: 7.938 kB / 0.9189 GB, free: 6.195 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.6517, allocations: 0 / 0.9189 GB, free: 6.195 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.6517, allocations: 8 kB / 0.9189 GB, free: 6.188 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.6518, allocations: 21.92 kB / 0.9189 GB, free: 6.168 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.6518, allocations: 0 / 0.9189 GB, free: 6.168 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.939e-05/0.6519, allocations: 8 kB / 0.9189 GB, free: 6.16 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.6519, allocations: 3.938 kB / 0.9189 GB, free: 6.156 MB / 0.67 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 8.818e-05/0.652, allocations: 122.4 kB / 0.919 GB, free: 6.027 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.015e-05/0.6521, allocations: 7.906 kB / 0.919 GB, free: 6.02 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000461/0.6525, allocations: 362.9 kB / 0.9194 GB, free: 5.664 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.6525, allocations: 11.98 kB / 0.9194 GB, free: 5.652 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6526, allocations: 0 / 0.9194 GB, free: 5.652 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.6526, allocations: 4 kB / 0.9194 GB, free: 5.648 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.6529, allocations: 289 kB / 0.9197 GB, free: 5.316 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.6529, allocations: 3.984 kB / 0.9197 GB, free: 5.312 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.623e-05/0.653, allocations: 19.94 kB / 0.9197 GB, free: 5.293 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.653, allocations: 0 / 0.9197 GB, free: 5.293 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.653, allocations: 11.98 kB / 0.9197 GB, free: 5.281 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.653, allocations: 0 / 0.9197 GB, free: 5.281 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.653, allocations: 1 kB / 0.9197 GB, free: 5.281 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.6534, allocations: 327.2 kB / 0.92 GB, free: 4.945 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 7.062e-05/0.6534, allocations: 104.9 kB / 0.9201 GB, free: 4.824 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.6535, allocations: 0 / 0.9201 GB, free: 4.824 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.6536, allocations: 11.94 kB / 0.9201 GB, free: 4.812 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.387e-05/0.6536, allocations: 11.92 kB / 0.9201 GB, free: 4.801 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.6536, allocations: 11.98 kB / 0.9201 GB, free: 4.789 MB / 0.67 GB Notification: Performance of sorting global known variables: time 4.441e-05/0.6537, allocations: 79.22 kB / 0.9202 GB, free: 4.711 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6537, allocations: 4 kB / 0.9202 GB, free: 4.707 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.000813/0.6545, allocations: 299.9 kB / 0.9205 GB, free: 4.414 MB / 0.67 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.001313/0.6558, allocations: 407 kB / 0.9209 GB, free: 4.012 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0002173/0.6561, allocations: 127.8 kB / 0.921 GB, free: 3.887 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6561, allocations: 0 / 0.921 GB, free: 3.887 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.6562, allocations: 108.5 kB / 0.9211 GB, free: 3.781 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.6565, allocations: 28.38 kB / 0.9211 GB, free: 3.758 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005076/0.6571, allocations: 309 kB / 0.9214 GB, free: 3.434 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.6574, allocations: 0.7204 MB / 0.9221 GB, free: 2.684 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.6575, allocations: 28.34 kB / 0.9222 GB, free: 2.656 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.6575, allocations: 19.44 kB / 0.9222 GB, free: 2.637 MB / 0.67 GB Notification: Performance of SimCode: time 3.81e-07/0.6575, allocations: 0 / 0.9222 GB, free: 2.637 MB / 0.67 GB Notification: Performance of Templates: time 0.01467/0.6722, allocations: 9.775 MB / 0.9317 GB, free: 8.883 MB / 0.6856 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.sim & ./BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1)