Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 80.3 kB / 21.47 MB, free: 3.027 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 169.8 kB / 24.86 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.039/1.039, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.883/1.883, allocations: 377.9 MB / 0.6247 GB, free: 8.414 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|T|h",fileNamePrefix="Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 0.8127 GB, free: 1.344 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.355e-05/1.492e-05, allocations: 7.906 kB / 0.8127 GB, free: 1.336 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003887/0.003902, allocations: 4.146 MB / 0.8168 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0001361/0.004038, allocations: 159.4 kB / 0.8169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.507e-05/0.004063, allocations: 0 / 0.8169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.004169, allocations: 8.672 kB / 0.817 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.218e-05/0.004241, allocations: 7.938 kB / 0.817 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.004504, allocations: 93.55 kB / 0.817 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.935e-05/0.004574, allocations: 37.38 kB / 0.8171 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.373e-05/0.004607, allocations: 0 / 0.8171 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.549e-05/0.004653, allocations: 23.97 kB / 0.8171 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.093e-05/0.004714, allocations: 11.92 kB / 0.8171 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.004725, allocations: 5.844 kB / 0.8171 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.00485, allocations: 55.8 kB / 0.8172 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.809e-05/0.004888, allocations: 7.938 kB / 0.8172 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.307e-05/0.004901, allocations: 4 kB / 0.8172 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.005007, allocations: 63.86 kB / 0.8173 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.005009, allocations: 1.156 kB / 0.8173 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.61e-07/0.005009, allocations: 0 / 0.8173 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.865e-06/0.005012, allocations: 0 / 0.8173 GB, free: 12.73 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002401/0.005252, allocations: 357.7 kB / 0.8176 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 2.686e-05/0.005279, allocations: 15.97 kB / 0.8176 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.005307, allocations: 9.234 kB / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.639e-05/0.005373, allocations: 117.1 kB / 0.8177 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.005414, allocations: 51.97 kB / 0.8178 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.005423, allocations: 4.906 kB / 0.8178 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.346e-05/0.005506, allocations: 73.19 kB / 0.8179 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.005512, allocations: 1.031 kB / 0.8179 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.005519, allocations: 3.938 kB / 0.8179 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.005536, allocations: 4.844 kB / 0.8179 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.609e-05/0.005552, allocations: 7.984 kB / 0.8179 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002408/0.005793, allocations: 237 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.197e-05/0.005825, allocations: 35.03 kB / 0.8181 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.047e-06/0.005834, allocations: 9.062 kB / 0.8181 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.005866, allocations: 8.062 kB / 0.8181 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.005889, allocations: 38.61 kB / 0.8182 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.00589, allocations: 0 / 0.8182 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 9.326e-05/0.005983, allocations: 37.64 kB / 0.8182 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.006007, allocations: 60.05 kB / 0.8183 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.504e-05/0.006072, allocations: 157.9 kB / 0.8184 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.006082, allocations: 26.42 kB / 0.8185 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.006131, allocations: 138.8 kB / 0.8186 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.081e-06/0.006137, allocations: 8.844 kB / 0.8186 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.341e-05/0.00616, allocations: 19.38 kB / 0.8186 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.006264, allocations: 493 kB / 0.8191 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.923e-06/0.00627, allocations: 4 kB / 0.8191 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.947e-05/0.00629, allocations: 28.69 kB / 0.8191 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.611e-05/0.006316, allocations: 23.38 kB / 0.8191 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.006318, allocations: 0.5 kB / 0.8191 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.866e-05/0.006366, allocations: 50.25 kB / 0.8192 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.789e-06/0.006376, allocations: 5.75 kB / 0.8192 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.00638, allocations: 0 / 0.8192 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.006389, allocations: 4 kB / 0.8192 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.868e-05/0.006417, allocations: 8 kB / 0.8192 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-06/0.006419, allocations: 0 / 0.8192 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.123e-05/0.006431, allocations: 4.812 kB / 0.8192 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.006438, allocations: 4 kB / 0.8192 GB, free: 10.51 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 5.518e-05/0.006493, allocations: 160 kB / 0.8194 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.006511, allocations: 12.17 kB / 0.8194 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.5e-05/0.006596, allocations: 159.7 kB / 0.8195 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.547e-05/0.006652, allocations: 280 kB / 0.8198 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.214e-05/0.006704, allocations: 264.1 kB / 0.82 GB, free: 9.613 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003041/0.007008, allocations: 272.1 kB / 0.8203 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.007156, allocations: 480.5 kB / 0.8208 GB, free: 8.836 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.183e-05/0.007188, allocations: 152.9 kB / 0.8209 GB, free: 8.68 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-05/0.007218, allocations: 149.4 kB / 0.821 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.123e-05/0.007269, allocations: 269.1 kB / 0.8213 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.426e-05/0.007323, allocations: 272.1 kB / 0.8216 GB, free: 7.984 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-05/0.007384, allocations: 276 kB / 0.8218 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-05/0.007433, allocations: 265.2 kB / 0.8221 GB, free: 7.441 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.007543, allocations: 452 kB / 0.8225 GB, free: 6.973 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.007575, allocations: 144.9 kB / 0.8227 GB, free: 6.824 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.15e-05/0.007637, allocations: 272.7 kB / 0.8229 GB, free: 6.551 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.493e-05/0.007722, allocations: 152.8 kB / 0.8231 GB, free: 6.395 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.00778, allocations: 278.1 kB / 0.8233 GB, free: 6.117 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.007809, allocations: 144.9 kB / 0.8235 GB, free: 5.969 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.399e-05/0.007843, allocations: 123.2 kB / 0.8236 GB, free: 5.848 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.007843, allocations: 0 / 0.8236 GB, free: 5.848 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001568/0.008, allocations: 15.94 kB / 0.8236 GB, free: 5.832 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0001196/0.00812, allocations: 241.6 kB / 0.8238 GB, free: 5.59 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 4.59e-05/0.008166, allocations: 15.62 kB / 0.8238 GB, free: 5.57 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-06/0.008167, allocations: 0 / 0.8238 GB, free: 5.57 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.82e-07/0.008168, allocations: 4 kB / 0.8238 GB, free: 5.566 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.008464, allocations: 0.714 MB / 0.8245 GB, free: 4.848 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.008779, allocations: 234.4 kB / 0.8248 GB, free: 4.59 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.734e-05/0.008806, allocations: 56.39 kB / 0.8248 GB, free: 4.516 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.505e-05/0.008831, allocations: 5.125 kB / 0.8248 GB, free: 4.512 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.898e-05/0.00889, allocations: 86.17 kB / 0.8249 GB, free: 4.426 MB / 0.7761 GB Notification: Performance of SimCode: time 5.91e-07/0.008891, allocations: 1.094 kB / 0.8249 GB, free: 4.426 MB / 0.7761 GB Notification: Performance of Templates: time 0.001858/0.01075, allocations: 0.7503 MB / 0.8256 GB, free: 3.699 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.076063529122621]