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.001062/0.001062, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008713/0.008713, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.362/1.362, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.704/1.704, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005352/0.0005352, allocations: 16.47 kB / 0.6744 GB, free: 25.72 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2354, allocations: 116.3 MB / 0.788 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.6469/0.8823, allocations: 277.7 MB / 1.059 GB, free: 3.18 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.03243/0.9148, allocations: 24.17 MB / 1.083 GB, free: 13.98 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004149/0.919, allocations: 103.3 kB / 1.083 GB, free: 13.88 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.004179/0.9232, allocations: 1.434 MB / 1.084 GB, free: 12.44 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.01285/0.9361, allocations: 4.853 MB / 1.089 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.006219/0.9423, allocations: 2.419 MB / 1.091 GB, free: 5.164 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01172/0.954, allocations: 9.625 MB / 1.101 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003359/0.9574, allocations: 2.185 MB / 1.103 GB, free: 9.27 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005647/0.9631, allocations: 2.851 MB / 1.106 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.9668, allocations: 2.121 MB / 1.108 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002747/0.9671, allocations: 108 kB / 1.108 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007884/0.975, allocations: 4.404 MB / 1.112 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0009757/0.976, allocations: 0.7824 MB / 1.113 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001841/0.9779, allocations: 1.424 MB / 1.114 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.008056/0.9859, allocations: 5.732 MB / 1.12 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.986, allocations: 0 / 1.12 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.804e-06/0.986, allocations: 0 / 1.12 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.804e-05/0.986, allocations: 0 / 1.12 GB, free: 7.793 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.007068/0.9931, allocations: 2.982 MB / 1.123 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.9932, allocations: 8.031 kB / 1.123 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003625/0.9935, allocations: 261.8 kB / 1.123 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004331/0.9979, allocations: 0.7575 MB / 1.124 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003613/1.001, allocations: 2.138 MB / 1.126 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/1.002, allocations: 147.6 kB / 1.126 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002871/1.002, allocations: 188 kB / 1.126 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00369/1.006, allocations: 2.243 MB / 1.128 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/1.006, allocations: 0 / 1.128 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/1.006, allocations: 72 kB / 1.129 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.308e-05/1.006, allocations: 79.53 kB / 1.129 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003327/1.009, allocations: 1.934 MB / 1.13 GB, free: 12.79 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.01248/1.022, allocations: 9.239 MB / 1.14 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/1.023, allocations: 1.054 MB / 1.141 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009184/1.024, allocations: 0.5857 MB / 1.141 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008301/1.025, allocations: 0.7088 MB / 1.142 GB, free: 480 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/1.025, allocations: 47.56 kB / 1.142 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009969/1.026, allocations: 150.5 kB / 1.142 GB, free: 272 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=102): time 2.805e-06/1.026, allocations: 0 / 1.142 GB, free: 272 kB / 0.8419 GB Notification: Performance of matching and sorting (n=104): time 0.009091/1.035, allocations: 3.812 MB / 1.146 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/1.035, allocations: 64.41 kB / 1.146 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002689/1.038, allocations: 2.05 MB / 1.148 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.038, allocations: 53.69 kB / 1.148 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009188/1.039, allocations: 1.163 MB / 1.149 GB, free: 8.992 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/1.04, allocations: 374.7 kB / 1.149 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/1.04, allocations: 121.6 kB / 1.149 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.895e-05/1.04, allocations: 301.1 kB / 1.15 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000871/1.041, allocations: 0.5036 MB / 1.15 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/1.042, allocations: 1.014 MB / 1.151 GB, free: 6.457 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.01062/1.053, allocations: 3.518 MB / 1.155 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.775e-05/1.053, allocations: 4 kB / 1.155 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004194/1.057, allocations: 1.866 MB / 1.156 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005184/1.057, allocations: 0.5119 MB / 1.157 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/1.057, allocations: 12 kB / 1.157 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/1.059, allocations: 332.4 kB / 1.157 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/1.06, allocations: 295.5 kB / 1.158 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/1.061, allocations: 0.9559 MB / 1.159 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/1.063, allocations: 168.2 kB / 1.159 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/1.063, allocations: 71.98 kB / 1.159 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/1.063, allocations: 4 kB / 1.159 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002882/1.066, allocations: 1.609 MB / 1.16 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/1.066, allocations: 12.69 kB / 1.16 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/1.068, allocations: 324.5 kB / 1.161 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/1.069, allocations: 295.5 kB / 1.161 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/1.07, allocations: 0.9645 MB / 1.162 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/1.072, allocations: 152.4 kB / 1.162 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/1.072, allocations: 71.92 kB / 1.162 GB, free: 10.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 sytem: 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.00116/1.073, allocations: 0.6605 MB / 1.163 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/1.073, allocations: 233.1 kB / 1.163 GB, free: 9.938 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/1.076, allocations: 1.46 MB / 1.164 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/1.076, allocations: 8 kB / 1.164 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/1.076, allocations: 0 / 1.164 GB, free: 8.457 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001628/1.078, allocations: 1.054 MB / 1.165 GB, free: 7.391 MB / 0.8731 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.006179/1.084, allocations: 3.981 MB / 1.169 GB, free: 3.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.084, allocations: 15.97 kB / 1.169 GB, free: 3.195 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007871/1.085, allocations: 175.8 kB / 1.169 GB, free: 3.023 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/1.086, allocations: 303 kB / 1.17 GB, free: 2.727 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/1.086, allocations: 24 kB / 1.17 GB, free: 2.703 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009452/1.087, allocations: 0.9113 MB / 1.171 GB, free: 1.766 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.087, allocations: 8 kB / 1.171 GB, free: 1.758 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/1.09, allocations: 2.124 MB / 1.173 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009154/1.091, allocations: 434 kB / 1.173 GB, free: 15.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/1.091, allocations: 27.98 kB / 1.173 GB, free: 15.06 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/1.093, allocations: 114.9 kB / 1.173 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/1.093, allocations: 84.38 kB / 1.173 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.243e-05/1.093, allocations: 43.98 kB / 1.173 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001911/1.095, allocations: 1.392 MB / 1.175 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.41e-07/1.095, allocations: 0 / 1.175 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.003024/1.098, allocations: 1.097 MB / 1.176 GB, free: 12.33 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.004092/1.102, allocations: 3.049 MB / 1.179 GB, free: 9.176 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003808/1.106, allocations: 2.095 MB / 1.181 GB, free: 7.086 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.106, allocations: 5.875 kB / 1.181 GB, free: 7.082 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0009781/1.107, allocations: 0.5542 MB / 1.181 GB, free: 6.531 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007458/1.114, allocations: 1.305 MB / 1.183 GB, free: 5.238 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03027/1.145, allocations: 19 MB / 1.201 GB, free: 0.5625 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/1.146, allocations: 1.678 MB / 1.203 GB, free: 14.85 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002394/1.148, allocations: 0.5596 MB / 1.203 GB, free: 14.3 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.149, allocations: 0.9718 MB / 1.204 GB, free: 13.33 MB / 0.92 GB Notification: Performance of SimCode: time 8.12e-07/1.149, allocations: 0 / 1.204 GB, free: 13.33 MB / 0.92 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.14, 0.06260990336999411, 0.014).