Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8293/0.8293, allocations: 141.8 MB / 149.3 MB, free: 9.234 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 191.5 kB / 182.2 MB, free: 9.465 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.5 MB / 436.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 99.62 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00177/0.00177, allocations: 280.2 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/2.014e-05, allocations: 4 kB / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4501/0.4502, allocations: 82.78 MB / 0.7574 GB, free: 32.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.281/5.731, allocations: 1.891 GB / 2.648 GB, free: 127.5 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/5.731, allocations: 92.33 kB / 2.648 GB, free: 127.4 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.454/10.19, allocations: 1.039 GB / 3.687 GB, free: 101.2 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/10.19, allocations: 0 / 3.687 GB, free: 101.2 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0003082/10.19, allocations: 44.45 kB / 3.687 GB, free: 101.2 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.006856/10.19, allocations: 2.065 MB / 3.689 GB, free: 100.3 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/10.19, allocations: 10.88 kB / 3.689 GB, free: 100.3 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00462/10.2, allocations: 0.6278 MB / 3.69 GB, free: 100.2 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004814/10.2, allocations: 1.424 MB / 3.691 GB, free: 99.86 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003897/10.2, allocations: 114.1 kB / 3.691 GB, free: 99.85 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000505/10.2, allocations: 76.09 kB / 3.691 GB, free: 99.85 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002598/10.21, allocations: 0.9837 MB / 3.692 GB, free: 99.84 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/10.21, allocations: 1.182 MB / 3.694 GB, free: 99.64 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.046e-05/10.21, allocations: 3.438 kB / 3.694 GB, free: 99.64 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/10.21, allocations: 3.406 kB / 3.694 GB, free: 99.64 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.947e-05/10.21, allocations: 44.98 kB / 3.694 GB, free: 99.64 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.01041/10.22, allocations: 5.64 MB / 3.699 GB, free: 97.34 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/10.22, allocations: 0.9411 MB / 3.7 GB, free: 97.12 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006541/10.22, allocations: 458.2 kB / 3.7 GB, free: 97.11 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005903/10.22, allocations: 317.8 kB / 3.701 GB, free: 96.83 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000848/10.22, allocations: 0.5035 MB / 3.701 GB, free: 96.74 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=87): time 5.19e-06/10.22, allocations: 0 / 3.701 GB, free: 96.74 MB / 0.7136 GB Notification: Performance of matching and sorting (n=95): time 0.008979/10.23, allocations: 2.984 MB / 3.704 GB, free: 96.1 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/10.23, allocations: 198.7 kB / 3.704 GB, free: 95.88 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/10.23, allocations: 0.9141 MB / 3.705 GB, free: 95.73 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001596/10.23, allocations: 29.27 kB / 3.705 GB, free: 95.7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008147/10.24, allocations: 0.7314 MB / 3.706 GB, free: 95.44 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/10.24, allocations: 319.9 kB / 3.706 GB, free: 95.23 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/10.24, allocations: 0 / 3.706 GB, free: 95.23 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001089/10.24, allocations: 341.3 kB / 3.707 GB, free: 94.93 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005663/10.24, allocations: 365 kB / 3.707 GB, free: 94.92 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007461/10.24, allocations: 0.5897 MB / 3.708 GB, free: 94.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003906/10.24, allocations: 1.349 MB / 3.709 GB, free: 94.54 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/10.24, allocations: 3.938 kB / 3.709 GB, free: 94.54 MB / 0.7136 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004184/10.25, allocations: 1.608 MB / 3.71 GB, free: 94.37 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003714/10.25, allocations: 1.284 MB / 3.712 GB, free: 93.06 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/10.25, allocations: 4.75 kB / 3.712 GB, free: 93.06 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/10.25, allocations: 408.4 kB / 3.712 GB, free: 93.03 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007703/10.25, allocations: 172.7 kB / 3.712 GB, free: 93.03 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006856/10.25, allocations: 6.539 MB / 3.719 GB, free: 88.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/10.26, allocations: 112.1 kB / 3.719 GB, free: 88.76 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002716/10.26, allocations: 37.7 kB / 3.719 GB, free: 88.76 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/10.26, allocations: 6.469 kB / 3.719 GB, free: 88.76 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004103/10.26, allocations: 1.432 MB / 3.72 GB, free: 88.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/10.26, allocations: 8.219 kB / 3.72 GB, free: 88.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009948/10.26, allocations: 409.7 kB / 3.721 GB, free: 88.65 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/10.26, allocations: 168.6 kB / 3.721 GB, free: 88.65 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007475/10.27, allocations: 7.473 MB / 3.728 GB, free: 83.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/10.27, allocations: 121.5 kB / 3.728 GB, free: 83.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/10.27, allocations: 38.17 kB / 3.728 GB, free: 83.54 MB / 0.7136 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 11,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000689/10.27, allocations: 172.2 kB / 3.728 GB, free: 83.39 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/10.27, allocations: 156.8 kB / 3.728 GB, free: 83.31 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/10.28, allocations: 1.385 MB / 3.73 GB, free: 83.21 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/10.28, allocations: 17.97 kB / 3.73 GB, free: 83.21 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/10.28, allocations: 1.859 kB / 3.73 GB, free: 83.21 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002915/10.28, allocations: 1.279 MB / 3.731 GB, free: 83.01 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00756/10.29, allocations: 3.141 MB / 3.734 GB, free: 82.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/10.29, allocations: 2.875 kB / 3.734 GB, free: 82.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/10.29, allocations: 197.1 kB / 3.734 GB, free: 82.48 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000428/10.29, allocations: 191.6 kB / 3.735 GB, free: 82.46 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.752e-05/10.29, allocations: 29.34 kB / 3.735 GB, free: 82.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002616/10.29, allocations: 2.419 MB / 3.737 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/10.29, allocations: 9.344 kB / 3.737 GB, free: 80.75 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004392/10.3, allocations: 2.324 MB / 3.739 GB, free: 80.02 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/10.3, allocations: 350.8 kB / 3.74 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005125/10.3, allocations: 16.27 kB / 3.74 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/10.3, allocations: 122.6 kB / 3.74 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/10.3, allocations: 73.81 kB / 3.74 GB, free: 79.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/10.3, allocations: 44.56 kB / 3.74 GB, free: 79.83 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001585/10.3, allocations: 0.6942 MB / 3.74 GB, free: 79.72 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.31e-07/10.3, allocations: 0 / 3.74 GB, free: 79.72 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.005542/10.31, allocations: 0.973 MB / 3.741 GB, free: 79.69 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004974/10.31, allocations: 2.634 MB / 3.744 GB, free: 78.84 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.004298/10.32, allocations: 2.549 MB / 3.746 GB, free: 77.94 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/10.32, allocations: 10.84 kB / 3.746 GB, free: 77.94 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001026/10.32, allocations: 0.6705 MB / 3.747 GB, free: 77.77 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004756/10.32, allocations: 0.726 MB / 3.748 GB, free: 77.75 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007448/10.33, allocations: 2.532 MB / 3.75 GB, free: 76.88 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/10.33, allocations: 1.391 MB / 3.752 GB, free: 76.12 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002768/10.33, allocations: 430 kB / 3.752 GB, free: 76.11 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003437/10.34, allocations: 84.64 kB / 3.752 GB, free: 76.09 MB / 0.7136 GB Notification: Performance of SimCode: time 2.385e-06/10.34, allocations: 2.469 kB / 3.752 GB, free: 76.09 MB / 0.7136 GB Notification: Performance of Templates: time 0.07909/10.41, allocations: 46.6 MB / 3.798 GB, free: 49 MB / 0.7136 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)