Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.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.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007913/0.0007913, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009006/0.0009006, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001696/0.001696, allocations: 274.6 kB / 291.3 MB, free: 1.965 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9579/0.9579, allocations: 169.5 MB / 0.5 GB, free: 14.24 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004024, allocations: 12 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1405, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.5142/0.6548, allocations: 277.6 MB / 0.9555 GB, free: 10.82 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.05993/0.7147, allocations: 47.03 MB / 1.001 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008556/0.7233, allocations: 262.2 kB / 1.002 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.008398/0.7318, allocations: 2.383 MB / 1.004 GB, free: 9.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02039/0.7522, allocations: 7.267 MB / 1.011 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01327/0.7655, allocations: 4.774 MB / 1.016 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.02569/0.7912, allocations: 21.07 MB / 1.036 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008009/0.7992, allocations: 4.297 MB / 1.041 GB, free: 3.531 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3523/1.152, allocations: 5.892 MB / 1.046 GB, free: 58.72 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008465/1.16, allocations: 4.6 MB / 1.051 GB, free: 58.72 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.00143/1.161, allocations: 231.2 kB / 1.051 GB, free: 58.72 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00932/1.171, allocations: 2.642 MB / 1.054 GB, free: 58.72 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001693/1.173, allocations: 1.064 MB / 1.055 GB, free: 58.72 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.003123/1.176, allocations: 1.373 MB / 1.056 GB, free: 58.69 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.01142/1.187, allocations: 7.436 MB / 1.063 GB, free: 58.31 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.187, allocations: 1.938 kB / 1.063 GB, free: 58.31 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.023e-06/1.187, allocations: 0.8438 kB / 1.063 GB, free: 58.31 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0002942/1.187, allocations: 0 / 1.063 GB, free: 58.31 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.01254/1.2, allocations: 6.27 MB / 1.069 GB, free: 55.14 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.2, allocations: 8.281 kB / 1.069 GB, free: 55.14 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/1.203, allocations: 0.789 MB / 1.07 GB, free: 54.77 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009196/1.212, allocations: 5.004 MB / 1.075 GB, free: 53.89 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/1.212, allocations: 322.4 kB / 1.075 GB, free: 53.88 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005911/1.213, allocations: 434.1 kB / 1.076 GB, free: 53.88 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007179/1.22, allocations: 4.356 MB / 1.08 GB, free: 53.07 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-05/1.22, allocations: 12.72 kB / 1.08 GB, free: 53.07 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003843/1.22, allocations: 179.3 kB / 1.08 GB, free: 53.07 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/1.221, allocations: 118 kB / 1.08 GB, free: 53.07 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004984/1.226, allocations: 2.941 MB / 1.083 GB, free: 53.04 MB / 0.7481 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.02271/1.248, allocations: 25.03 MB / 1.108 GB, free: 37.23 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002521/1.251, allocations: 2.765 MB / 1.11 GB, free: 36.05 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/1.252, allocations: 0.9978 MB / 1.111 GB, free: 36.03 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001861/1.254, allocations: 3.917 MB / 1.115 GB, free: 31.62 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/1.254, allocations: 63.66 kB / 1.115 GB, free: 31.57 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=217): time 4.258e-06/1.254, allocations: 0 / 1.115 GB, free: 31.57 MB / 0.7481 GB Notification: Performance of matching and sorting (n=217): time 0.00891/1.263, allocations: 4.077 MB / 1.119 GB, free: 30.74 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/1.263, allocations: 75.69 kB / 1.119 GB, free: 30.68 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005167/1.268, allocations: 4.179 MB / 1.123 GB, free: 30.33 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0003382/1.269, allocations: 79.67 kB / 1.123 GB, free: 30.3 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001648/1.27, allocations: 2.797 MB / 1.126 GB, free: 29.42 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006575/1.271, allocations: 0.7621 MB / 1.127 GB, free: 28.93 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/1.271, allocations: 59.25 kB / 1.127 GB, free: 28.93 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001247/1.271, allocations: 413.9 kB / 1.127 GB, free: 28.62 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/1.272, allocations: 0.7869 MB / 1.128 GB, free: 28.62 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/1.274, allocations: 1.797 MB / 1.13 GB, free: 27.45 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/1.275, allocations: 1.072 MB / 1.131 GB, free: 27.38 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/1.275, allocations: 4.469 kB / 1.131 GB, free: 27.38 MB / 0.7481 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.006244/1.282, allocations: 3.504 MB / 1.134 GB, free: 26.88 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002395/1.282, allocations: 0.7468 MB / 1.135 GB, free: 25.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/1.282, allocations: 23.97 kB / 1.135 GB, free: 25.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/1.284, allocations: 0.5652 MB / 1.136 GB, free: 25.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/1.286, allocations: 0.5559 MB / 1.136 GB, free: 25.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/1.287, allocations: 2.681 MB / 1.139 GB, free: 23.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/1.291, allocations: 0.6004 MB / 1.139 GB, free: 23.62 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/1.292, allocations: 141.6 kB / 1.14 GB, free: 23.62 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.124e-06/1.292, allocations: 2.719 kB / 1.14 GB, free: 23.62 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004072/1.296, allocations: 2.796 MB / 1.142 GB, free: 23.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/1.296, allocations: 19.75 kB / 1.142 GB, free: 23.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008069/1.297, allocations: 380.9 kB / 1.143 GB, free: 23.41 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/1.298, allocations: 0.5519 MB / 1.143 GB, free: 23.41 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006199/1.304, allocations: 7.713 MB / 1.151 GB, free: 17.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004434/1.309, allocations: 0.5535 MB / 1.151 GB, free: 17.6 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002752/1.309, allocations: 127.8 kB / 1.151 GB, free: 17.6 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * 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 (323): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 0 * 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 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.002183/1.311, allocations: 1.005 MB / 1.152 GB, free: 17.4 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000993/1.312, allocations: 0.511 MB / 1.153 GB, free: 17.13 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/1.318, allocations: 3.6 MB / 1.156 GB, free: 16.67 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.186e-05/1.318, allocations: 41.45 kB / 1.156 GB, free: 16.67 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.318, allocations: 0 / 1.156 GB, free: 16.67 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003089/1.321, allocations: 2.43 MB / 1.159 GB, free: 16.42 MB / 0.7481 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 postOpt removeSimpleEquations (simulation): time 0.01124/1.332, allocations: 8.21 MB / 1.167 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/1.332, allocations: 6.516 kB / 1.167 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/1.333, allocations: 373.1 kB / 1.167 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006034/1.334, allocations: 291.6 kB / 1.167 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/1.334, allocations: 67.67 kB / 1.168 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/1.335, allocations: 2.496 MB / 1.17 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/1.335, allocations: 7.344 kB / 1.17 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006269/1.342, allocations: 4.327 MB / 1.174 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/1.344, allocations: 0.9839 MB / 1.175 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005823/1.344, allocations: 50.58 kB / 1.175 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002713/1.347, allocations: 421.3 kB / 1.176 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/1.347, allocations: 147.3 kB / 1.176 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.347, allocations: 109.6 kB / 1.176 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.003551/1.351, allocations: 2.756 MB / 1.179 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/1.351, allocations: 0 / 1.179 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.009029/1.36, allocations: 3.248 MB / 1.182 GB, free: 7.809 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * 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 (219): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * 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 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002256/1.362, allocations: 1.427 MB / 1.183 GB, free: 6.598 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005924/1.368, allocations: 4.397 MB / 1.187 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/1.368, allocations: 5.328 kB / 1.187 GB, free: 3.398 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/1.37, allocations: 1.232 MB / 1.189 GB, free: 2.566 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0114/1.381, allocations: 2.647 MB / 1.191 GB, free: 424 kB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/1.396, allocations: 11.07 MB / 1.202 GB, free: 6.141 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/1.399, allocations: 2.866 MB / 1.205 GB, free: 3.32 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004928/1.404, allocations: 1.175 MB / 1.206 GB, free: 2.16 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000919/1.405, allocations: 414.9 kB / 1.206 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of SimCode: time 1.874e-06/1.405, allocations: 4 kB / 1.206 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of Templates: time 0.1549/1.56, allocations: 100.2 MB / 1.304 GB, free: 15.66 MB / 0.8731 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)