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.001244/0.001244, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001282/0.001283, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.238/1.238, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.647/1.647, allocations: 292.3 MB / 0.5486 GB, free: 13.63 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.001434/0.001434, allocations: 71.34 kB / 0.6711 GB, free: 26.41 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1839, allocations: 114.6 MB / 0.783 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.6539/0.8378, allocations: 280.5 MB / 1.057 GB, free: 4.84 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.03074/0.8686, allocations: 23.79 MB / 1.08 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00459/0.8732, allocations: 106.2 kB / 1.08 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.004861/0.8782, allocations: 1.496 MB / 1.082 GB, free: 0.5742 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.8912, allocations: 4.862 MB / 1.086 GB, free: 12.47 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.006165/0.8974, allocations: 2.485 MB / 1.089 GB, free: 10 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.009454/0.9069, allocations: 7.191 MB / 1.096 GB, free: 2.797 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003922/0.9108, allocations: 2.611 MB / 1.098 GB, free: 136 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008168/0.919, allocations: 3.374 MB / 1.102 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004889/0.924, allocations: 2.308 MB / 1.104 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0007057/0.9247, allocations: 280 kB / 1.104 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008997/0.9337, allocations: 4.26 MB / 1.108 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.9352, allocations: 0.9698 MB / 1.109 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.002588/0.9378, allocations: 1.622 MB / 1.111 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.9491, allocations: 5.96 MB / 1.117 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.9491, allocations: 0 / 1.117 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.104e-06/0.9491, allocations: 0 / 1.117 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0001148/0.9492, allocations: 0 / 1.117 GB, free: 13.32 MB / 0.8262 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.009783/0.959, allocations: 3.562 MB / 1.12 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.9591, allocations: 12.03 kB / 1.12 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003788/0.9595, allocations: 265.8 kB / 1.121 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004837/0.9643, allocations: 0.738 MB / 1.121 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004437/0.9688, allocations: 2.132 MB / 1.123 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.9689, allocations: 143.6 kB / 1.123 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.9693, allocations: 188 kB / 1.124 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004102/0.9734, allocations: 2.228 MB / 1.126 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.463e-05/0.9734, allocations: 4 kB / 1.126 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.9736, allocations: 79.98 kB / 1.126 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.631e-05/0.9737, allocations: 79.47 kB / 1.126 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003445/0.9772, allocations: 1.919 MB / 1.128 GB, free: 1.773 MB / 0.8262 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.01328/0.9905, allocations: 9.231 MB / 1.137 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.9923, allocations: 1.04 MB / 1.138 GB, free: 6.914 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000955/0.9933, allocations: 0.5857 MB / 1.138 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009814/0.9943, allocations: 0.7088 MB / 1.139 GB, free: 5.469 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.613e-05/0.9943, allocations: 47.56 kB / 1.139 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001424/0.9958, allocations: 164.6 kB / 1.139 GB, free: 5.254 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=102): time 4.478e-06/0.9958, allocations: 0 / 1.139 GB, free: 5.254 MB / 0.8419 GB Notification: Performance of matching and sorting (n=104): time 0.009637/1.005, allocations: 3.776 MB / 1.143 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/1.005, allocations: 76.28 kB / 1.143 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/1.008, allocations: 2.054 MB / 1.145 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001075/1.008, allocations: 49.64 kB / 1.145 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008605/1.009, allocations: 1.156 MB / 1.146 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003241/1.01, allocations: 370.7 kB / 1.147 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004278/1.01, allocations: 299.2 kB / 1.147 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001027/1.01, allocations: 305.1 kB / 1.147 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/1.011, allocations: 0.5084 MB / 1.148 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/1.012, allocations: 1.025 MB / 1.149 GB, free: 11.28 MB / 0.8575 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.01091/1.023, allocations: 3.486 MB / 1.152 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-05/1.023, allocations: 4 kB / 1.152 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.003639/1.027, allocations: 1.866 MB / 1.154 GB, free: 5.695 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/1.027, allocations: 10.5 kB / 1.154 GB, free: 5.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/1.027, allocations: 16 kB / 1.154 GB, free: 5.672 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/1.028, allocations: 312.8 kB / 1.154 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/1.029, allocations: 299.5 kB / 1.155 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/1.03, allocations: 0.9531 MB / 1.155 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/1.033, allocations: 172.2 kB / 1.156 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/1.033, allocations: 71.98 kB / 1.156 GB, free: 3.855 MB / 0.8575 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.001808/1.035, allocations: 0.9724 MB / 1.157 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001253/1.036, allocations: 1.01 MB / 1.158 GB, free: 1.645 MB / 0.8575 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.01097/1.047, allocations: 3.451 MB / 1.161 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.112e-05/1.047, allocations: 4 kB / 1.161 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=184) (initialization_lambda0): time 0.003633/1.051, allocations: 1.842 MB / 1.163 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/1.051, allocations: 12 kB / 1.163 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/1.051, allocations: 12 kB / 1.163 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/1.052, allocations: 327 kB / 1.163 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/1.053, allocations: 291.5 kB / 1.163 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009895/1.054, allocations: 0.9464 MB / 1.164 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/1.056, allocations: 157 kB / 1.165 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/1.057, allocations: 71.98 kB / 1.165 GB, free: 10.3 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_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 (160): * Single equations (assignments): 157 * 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.0004827/1.057, allocations: 287.7 kB / 1.165 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006656/1.058, allocations: 233.1 kB / 1.165 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/1.061, allocations: 1.467 MB / 1.167 GB, free: 8.305 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/1.061, allocations: 15.94 kB / 1.167 GB, free: 8.289 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.061, allocations: 0 / 1.167 GB, free: 8.289 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0017/1.063, allocations: 1.054 MB / 1.168 GB, free: 7.223 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00734/1.07, allocations: 3.824 MB / 1.171 GB, free: 3.223 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/1.07, allocations: 4 kB / 1.171 GB, free: 3.219 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008503/1.071, allocations: 171.7 kB / 1.171 GB, free: 3.051 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/1.072, allocations: 287.7 kB / 1.172 GB, free: 2.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.569e-05/1.072, allocations: 35.98 kB / 1.172 GB, free: 2.734 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009392/1.073, allocations: 0.9034 MB / 1.173 GB, free: 1.805 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/1.073, allocations: 11.94 kB / 1.173 GB, free: 1.793 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003816/1.077, allocations: 2.143 MB / 1.175 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002067/1.079, allocations: 418 kB / 1.175 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001072/1.08, allocations: 31.98 kB / 1.175 GB, free: 15.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002677/1.083, allocations: 102.9 kB / 1.175 GB, free: 14.99 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/1.083, allocations: 84.44 kB / 1.175 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/1.083, allocations: 43.98 kB / 1.175 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.004314/1.088, allocations: 1.384 MB / 1.177 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of sort global known variables: time 8.52e-07/1.088, allocations: 0 / 1.177 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.005166/1.093, allocations: 1.097 MB / 1.178 GB, free: 12.38 MB / 0.8887 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 (86): * Single equations (assignments): 83 * 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.005165/1.098, allocations: 3.067 MB / 1.181 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004814/1.103, allocations: 2.249 MB / 1.183 GB, free: 6.969 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.103, allocations: 4 kB / 1.183 GB, free: 6.965 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001082/1.104, allocations: 0.5554 MB / 1.184 GB, free: 6.414 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00641/1.11, allocations: 1.365 MB / 1.185 GB, free: 5.074 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03582/1.146, allocations: 18.95 MB / 1.203 GB, free: 472 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/1.148, allocations: 1.678 MB / 1.205 GB, free: 14.75 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002843/1.151, allocations: 0.5681 MB / 1.206 GB, free: 14.18 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/1.152, allocations: 0.9562 MB / 1.207 GB, free: 13.23 MB / 0.92 GB Notification: Performance of SimCode: time 1.222e-06/1.152, allocations: 0 / 1.207 GB, free: 13.23 MB / 0.92 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).