Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 193.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.73/1.73, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002487/0.002487, allocations: 65.95 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2671, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.8444/1.112, allocations: 283.9 MB / 1.061 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.03818/1.15, allocations: 23.87 MB / 1.084 GB, free: 3.465 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005528/1.155, allocations: 115.3 kB / 1.084 GB, free: 3.352 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.005983/1.161, allocations: 1.682 MB / 1.086 GB, free: 1.66 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01511/1.177, allocations: 5.188 MB / 1.091 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.008112/1.185, allocations: 2.679 MB / 1.093 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.01124/1.196, allocations: 7.167 MB / 1.1 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004997/1.201, allocations: 2.627 MB / 1.103 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008609/1.21, allocations: 3.329 MB / 1.106 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00501/1.215, allocations: 2.179 MB / 1.108 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0008648/1.216, allocations: 280 kB / 1.109 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008926/1.224, allocations: 4.108 MB / 1.113 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001446/1.226, allocations: 0.9659 MB / 1.114 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002597/1.229, allocations: 1.614 MB / 1.115 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.009637/1.238, allocations: 5.726 MB / 1.121 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.238, allocations: 0 / 1.121 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.343e-06/1.238, allocations: 0 / 1.121 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.214e-05/1.238, allocations: 0 / 1.121 GB, free: 13.69 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.00943/1.248, allocations: 3.558 MB / 1.124 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.248, allocations: 8.031 kB / 1.124 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000343/1.248, allocations: 265.8 kB / 1.125 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00465/1.253, allocations: 0.7341 MB / 1.125 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00414/1.257, allocations: 2.112 MB / 1.127 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/1.257, allocations: 143.6 kB / 1.127 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003012/1.258, allocations: 188 kB / 1.128 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003866/1.261, allocations: 2.229 MB / 1.13 GB, free: 4.25 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/1.261, allocations: 7.984 kB / 1.13 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/1.262, allocations: 76 kB / 1.13 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.473e-05/1.262, allocations: 75.52 kB / 1.13 GB, free: 4.094 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00346/1.265, allocations: 1.899 MB / 1.132 GB, free: 2.191 MB / 0.8419 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.01385/1.279, allocations: 9.417 MB / 1.141 GB, free: 8.184 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/1.281, allocations: 1.048 MB / 1.142 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009145/1.282, allocations: 0.5779 MB / 1.143 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009035/1.283, allocations: 0.7088 MB / 1.143 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/1.283, allocations: 51.5 kB / 1.143 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001296/1.284, allocations: 154.5 kB / 1.143 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=100): time 5.39e-06/1.284, allocations: 0 / 1.143 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of matching and sorting (n=102): time 0.01321/1.297, allocations: 4.139 MB / 1.148 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/1.297, allocations: 68.41 kB / 1.148 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003125/1.301, allocations: 2.066 MB / 1.15 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002013/1.301, allocations: 53.7 kB / 1.15 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001001/1.302, allocations: 1.16 MB / 1.151 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004842/1.302, allocations: 358.8 kB / 1.151 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005175/1.303, allocations: 291.3 kB / 1.151 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001497/1.303, allocations: 305.1 kB / 1.152 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/1.304, allocations: 0.5123 MB / 1.152 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/1.305, allocations: 1.017 MB / 1.153 GB, free: 11.16 MB / 0.8731 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start (sin_2.p = fan.vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/1.317, allocations: 3.483 MB / 1.157 GB, free: 7.457 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/1.317, allocations: 4 kB / 1.157 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.00355/1.321, allocations: 1.847 MB / 1.158 GB, free: 5.598 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/1.321, allocations: 16.03 kB / 1.158 GB, free: 5.582 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/1.321, allocations: 12 kB / 1.158 GB, free: 5.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/1.322, allocations: 316.5 kB / 1.159 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/1.323, allocations: 291.5 kB / 1.159 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/1.324, allocations: 0.958 MB / 1.16 GB, free: 3.988 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/1.327, allocations: 79.23 kB / 1.16 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/1.327, allocations: 75.97 kB / 1.16 GB, free: 3.84 MB / 0.8731 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001899/1.329, allocations: 0.9646 MB / 1.161 GB, free: 2.871 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001292/1.33, allocations: 1.01 MB / 1.162 GB, free: 1.641 MB / 0.8731 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start (sin_2.p = fan.vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01105/1.341, allocations: 3.442 MB / 1.165 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.636e-05/1.341, allocations: 4 kB / 1.165 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of matching and sorting (n=182) (initialization_lambda0): time 0.003483/1.345, allocations: 1.827 MB / 1.167 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.345, allocations: 12 kB / 1.167 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.345, allocations: 12 kB / 1.167 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/1.346, allocations: 323 kB / 1.167 GB, free: 11.8 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/1.347, allocations: 299.5 kB / 1.168 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/1.348, allocations: 0.9581 MB / 1.169 GB, free: 10.53 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/1.35, allocations: 67.06 kB / 1.169 GB, free: 10.46 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/1.35, allocations: 71.98 kB / 1.169 GB, free: 10.39 MB / 0.8887 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: fan.vol.dynBal.medium.p = fan.vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (158): * Single equations (assignments): 155 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0003993/1.35, allocations: 279.7 kB / 1.169 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/1.351, allocations: 237.1 kB / 1.169 GB, free: 9.879 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/1.354, allocations: 1.452 MB / 1.171 GB, free: 8.414 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/1.354, allocations: 15.94 kB / 1.171 GB, free: 8.398 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/1.354, allocations: 3.938 kB / 1.171 GB, free: 8.395 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001775/1.356, allocations: 1.054 MB / 1.172 GB, free: 7.328 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007252/1.363, allocations: 3.822 MB / 1.176 GB, free: 3.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/1.363, allocations: 8 kB / 1.176 GB, free: 3.324 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008701/1.364, allocations: 167.8 kB / 1.176 GB, free: 3.16 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/1.365, allocations: 285 kB / 1.176 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.302e-05/1.365, allocations: 28 kB / 1.176 GB, free: 2.852 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009631/1.366, allocations: 0.9144 MB / 1.177 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.366, allocations: 16 kB / 1.177 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/1.37, allocations: 2.126 MB / 1.179 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.371, allocations: 422 kB / 1.179 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00029/1.371, allocations: 27.98 kB / 1.179 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/1.372, allocations: 47.02 kB / 1.179 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/1.372, allocations: 72.52 kB / 1.18 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-05/1.373, allocations: 47.97 kB / 1.18 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002152/1.375, allocations: 1.392 MB / 1.181 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3e-07/1.375, allocations: 4 kB / 1.181 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003588/1.378, allocations: 1.082 MB / 1.182 GB, free: 12.56 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (fan.vol.dynBal.U,fan.vol.dynBal.mXi[1]) * 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 (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004538/1.383, allocations: 3.062 MB / 1.185 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004774/1.388, allocations: 2.228 MB / 1.187 GB, free: 7.184 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.388, allocations: 4.125 kB / 1.187 GB, free: 7.18 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001052/1.389, allocations: 0.5505 MB / 1.188 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006391/1.395, allocations: 1.359 MB / 1.189 GB, free: 5.293 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02986/1.425, allocations: 18.15 MB / 1.207 GB, free: 1.477 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/1.427, allocations: 1.678 MB / 1.208 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.003091/1.43, allocations: 0.5563 MB / 1.209 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/1.432, allocations: 0.9678 MB / 1.21 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of SimCode: time 1.212e-06/1.432, allocations: 0 / 1.21 GB, free: 14.24 MB / 0.9356 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.14, 0.06260990336999411, 0.014).