Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Rooms.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain") translateModel(Buildings.Rooms.BaseClasses.Examples.HeatGain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5799/0.5799, allocations: 95.61 MB / 110.6 MB, free: 9.387 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001273/0.001273, allocations: 170.2 kB / 134.2 MB, free: 2.262 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.749/1.749, allocations: 170.7 MB / 328.4 MB, free: 12.3 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002145/0.002145, allocations: 123.3 kB / 390.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003898, allocations: 19.98 kB / 462.7 MB, free: 35.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1801, allocations: 61.52 MB / 0.512 GB, free: 6.094 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.13/14.31, allocations: 5.308 GB / 5.82 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003814/14.31, allocations: 91.25 kB / 5.82 GB, free: 138.4 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Rooms/BaseClasses/HeatGain.mo:38:31-38:42:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.9917/15.31, allocations: 340.7 MB / 6.153 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.483e-06/15.31, allocations: 0 / 6.153 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.901e-05/15.31, allocations: 20 kB / 6.153 GB, free: 60.1 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003648/15.31, allocations: 1.22 MB / 6.154 GB, free: 58.81 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/15.31, allocations: 15.98 kB / 6.154 GB, free: 58.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007024/15.31, allocations: 94.97 kB / 6.155 GB, free: 58.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08973/15.4, allocations: 48.59 MB / 6.202 GB, free: 8.984 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/15.4, allocations: 108.7 kB / 6.202 GB, free: 8.863 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003579/15.4, allocations: 68 kB / 6.202 GB, free: 8.797 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002084/15.4, allocations: 0.748 MB / 6.203 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/15.4, allocations: 3.938 kB / 6.203 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001708/15.4, allocations: 28 kB / 6.203 GB, free: 7.992 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/15.4, allocations: 19.89 kB / 6.203 GB, free: 7.973 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/15.4, allocations: 0.6648 MB / 6.204 GB, free: 7.309 MB / 0.5261 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.005025/15.41, allocations: 2.733 MB / 6.206 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/15.41, allocations: 453 kB / 6.207 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005931/15.41, allocations: 319.6 kB / 6.207 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/15.41, allocations: 42.83 kB / 6.207 GB, free: 3.543 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=39): time 5.49e-06/15.41, allocations: 4 kB / 6.207 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44): time 0.005164/15.42, allocations: 1.833 MB / 6.209 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/15.42, allocations: 59.34 kB / 6.209 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007203/15.42, allocations: 0.6088 MB / 6.209 GB, free: 0.9688 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.467e-05/15.42, allocations: 37.7 kB / 6.209 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/15.42, allocations: 356.2 kB / 6.21 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/15.42, allocations: 153.8 kB / 6.21 GB, free: 432 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/15.42, allocations: 16 kB / 6.21 GB, free: 416 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001297/15.42, allocations: 378.8 kB / 6.21 GB, free: 28 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3499/15.77, allocations: 248.2 kB / 6.211 GB, free: 74.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007297/15.77, allocations: 390.5 kB / 6.211 GB, free: 74.76 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/15.77, allocations: 387.1 kB / 6.211 GB, free: 74.67 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/15.77, allocations: 1.656 kB / 6.211 GB, free: 74.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001831/15.77, allocations: 0.8792 MB / 6.212 GB, free: 74.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.638e-05/15.77, allocations: 94.25 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/15.77, allocations: 7.906 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/15.77, allocations: 11.75 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/15.77, allocations: 137.9 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/15.77, allocations: 7.406 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007271/15.77, allocations: 52.98 kB / 6.212 GB, free: 74.44 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-05/15.77, allocations: 29.92 kB / 6.213 GB, free: 74.44 MB / 0.5261 GB Warning: Assuming fixed start value for the following 2 variables: vol.dynBal.medium.T:VARIABLE(min = max(1.0, 1.0) max = min(10000.0, 10000.0) start = vol.dynBal.T_start unit = "K" fixed = true nominal = 293.15 stateSelect=StateSelect.prefer protected = true ) "Temperature of medium" type: Real vol.dynBal.medium.Xi[1]:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))) max = min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, min(1.0, 1.0))))))))))) start = 0.01 unit = "1" fixed = true nominal = 0.1 stateSelect=StateSelect.prefer protected = true ) "Structurally independent mass fractions" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 2 (QSen_flow.i_x,QLat_flow.i_x) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007382/15.77, allocations: 303.7 kB / 6.213 GB, free: 74.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/15.77, allocations: 71.61 kB / 6.213 GB, free: 74.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/15.78, allocations: 0.7483 MB / 6.214 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/15.78, allocations: 6.484 kB / 6.214 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/15.78, allocations: 0.5312 kB / 6.214 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/15.78, allocations: 3.188 kB / 6.214 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/15.78, allocations: 1.623 MB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/15.78, allocations: 1.031 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/15.78, allocations: 104 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/15.78, allocations: 6.234 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/15.78, allocations: 17.64 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/15.78, allocations: 5.906 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/15.78, allocations: 6.094 kB / 6.215 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/15.78, allocations: 1.177 MB / 6.216 GB, free: 73.57 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004376/15.78, allocations: 238.5 kB / 6.217 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/15.78, allocations: 16.33 kB / 6.217 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/15.78, allocations: 41 kB / 6.217 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/15.78, allocations: 41.09 kB / 6.217 GB, free: 73.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/15.78, allocations: 32.72 kB / 6.217 GB, free: 73.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007148/15.78, allocations: 487.3 kB / 6.217 GB, free: 73.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.252e-06/15.78, allocations: 1.281 kB / 6.217 GB, free: 73.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002064/15.79, allocations: 0.5169 MB / 6.218 GB, free: 73.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (vol.dynBal.medium.Xi[1],vol.dynBal.medium.T) * 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 (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002621/15.79, allocations: 1.258 MB / 6.219 GB, free: 73.17 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001269/15.79, allocations: 0.7909 MB / 6.22 GB, free: 72.97 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/15.79, allocations: 3.219 kB / 6.22 GB, free: 72.97 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004561/15.79, allocations: 309.5 kB / 6.22 GB, free: 72.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/15.79, allocations: 390 kB / 6.22 GB, free: 72.94 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002978/15.79, allocations: 1.839 MB / 6.222 GB, free: 72.18 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/15.79, allocations: 0.9931 MB / 6.223 GB, free: 71.48 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007757/15.8, allocations: 185.9 kB / 6.223 GB, free: 71.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/15.8, allocations: 68.36 kB / 6.223 GB, free: 71.47 MB / 0.5261 GB Notification: Performance of SimCode: time 6.11e-07/15.8, allocations: 0 / 6.223 GB, free: 71.47 MB / 0.5261 GB Notification: Performance of Templates: time 0.04863/15.84, allocations: 30.71 MB / 6.253 GB, free: 70.84 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.makefile (rm -f Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.sim & ./Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Rooms.BaseClasses.Examples.HeatGain.pipe 2>&1)