Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_9_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.001247/0.001247, allocations: 108 kB / 15.6 MB, free: 132 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.001191/0.001191, allocations: 193.1 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.2 MB / 0.6647 GB, free: 308 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 71.91 kB / 0.8127 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5455/0.5468, allocations: 140.4 MB / 0.9497 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.2696/0.8164, allocations: 283.8 MB / 1.227 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.5298/1.346, allocations: 21.34 MB / 1.248 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003162/1.349, allocations: 114.8 kB / 1.248 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003563/1.353, allocations: 1.683 MB / 1.249 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01047/1.364, allocations: 5.209 MB / 1.255 GB, free: 26.09 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005081/1.369, allocations: 2.678 MB / 1.257 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00889/1.378, allocations: 7.219 MB / 1.264 GB, free: 26.04 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00319/1.381, allocations: 2.626 MB / 1.267 GB, free: 25.74 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006391/1.387, allocations: 3.339 MB / 1.27 GB, free: 25.71 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003342/1.391, allocations: 2.169 MB / 1.272 GB, free: 25.7 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004846/1.391, allocations: 280.3 kB / 1.272 GB, free: 25.7 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007192/1.398, allocations: 4.108 MB / 1.276 GB, free: 25.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008101/1.399, allocations: 0.9647 MB / 1.277 GB, free: 25.66 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001724/1.401, allocations: 1.623 MB / 1.279 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006219/1.407, allocations: 5.737 MB / 1.285 GB, free: 24.95 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/1.407, allocations: 0 / 1.285 GB, free: 24.95 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.683e-06/1.407, allocations: 3.219 kB / 1.285 GB, free: 24.95 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.231e-05/1.407, allocations: 0 / 1.285 GB, free: 24.95 MB / 0.9981 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.006421/1.414, allocations: 3.558 MB / 1.288 GB, free: 23.36 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/1.414, allocations: 8.5 kB / 1.288 GB, free: 23.36 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002607/1.414, allocations: 259.5 kB / 1.288 GB, free: 23.31 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004516/1.418, allocations: 0.8237 MB / 1.289 GB, free: 23.16 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/1.421, allocations: 2.162 MB / 1.291 GB, free: 22.59 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-05/1.421, allocations: 141 kB / 1.291 GB, free: 22.59 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/1.421, allocations: 186.8 kB / 1.292 GB, free: 22.59 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00293/1.424, allocations: 2.258 MB / 1.294 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.491e-05/1.424, allocations: 2.25 kB / 1.294 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/1.425, allocations: 79.25 kB / 1.294 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-05/1.425, allocations: 76.67 kB / 1.294 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003/1.428, allocations: 1.95 MB / 1.296 GB, free: 22.35 MB / 0.9981 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.008817/1.436, allocations: 9.477 MB / 1.305 GB, free: 18.1 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/1.438, allocations: 1.104 MB / 1.306 GB, free: 18.07 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/1.439, allocations: 0.6052 MB / 1.307 GB, free: 18.05 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005715/1.44, allocations: 0.7062 MB / 1.307 GB, free: 17.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/1.44, allocations: 50.41 kB / 1.307 GB, free: 17.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006167/1.44, allocations: 154.3 kB / 1.308 GB, free: 17.2 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=100): time 2.866e-06/1.44, allocations: 0.8125 kB / 1.308 GB, free: 17.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=102): time 0.008719/1.449, allocations: 4.045 MB / 1.312 GB, free: 16.38 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/1.449, allocations: 70.44 kB / 1.312 GB, free: 16.31 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/1.451, allocations: 2.075 MB / 1.314 GB, free: 16.07 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.901e-05/1.451, allocations: 54.2 kB / 1.314 GB, free: 16.04 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000602/1.452, allocations: 1.169 MB / 1.315 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/1.452, allocations: 361.9 kB / 1.315 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003772/1.452, allocations: 297.4 kB / 1.315 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.122e-05/1.452, allocations: 305.6 kB / 1.316 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007957/1.453, allocations: 0.5289 MB / 1.316 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/1.454, allocations: 1.035 MB / 1.317 GB, free: 14.48 MB / 0.9981 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.009474/1.464, allocations: 3.521 MB / 1.321 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/1.464, allocations: 2.75 kB / 1.321 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.002666/1.466, allocations: 1.9 MB / 1.323 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/1.466, allocations: 10.56 kB / 1.323 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/1.466, allocations: 14 kB / 1.323 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/1.468, allocations: 317 kB / 1.323 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/1.469, allocations: 308.4 kB / 1.323 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007293/1.469, allocations: 0.9544 MB / 1.324 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/1.471, allocations: 82.27 kB / 1.324 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/1.471, allocations: 71.58 kB / 1.324 GB, free: 13.07 MB / 0.9981 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.0014/1.472, allocations: 0.9945 MB / 1.325 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009679/1.473, allocations: 1.024 MB / 1.326 GB, free: 12.39 MB / 0.9981 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.009303/1.483, allocations: 3.5 MB / 1.33 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.983e-06/1.483, allocations: 1.906 kB / 1.33 GB, free: 11.69 MB / 0.9981 GB Notification: Performance of matching and sorting (n=182) (initialization_lambda0): time 0.002585/1.485, allocations: 1.872 MB / 1.331 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/1.485, allocations: 13.84 kB / 1.332 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1.485, allocations: 13.56 kB / 1.332 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/1.486, allocations: 317.8 kB / 1.332 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000978/1.487, allocations: 299 kB / 1.332 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006749/1.488, allocations: 0.958 MB / 1.333 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/1.49, allocations: 88.02 kB / 1.333 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.925e-05/1.49, allocations: 73.84 kB / 1.333 GB, free: 10.95 MB / 0.9981 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.0002882/1.49, allocations: 279.6 kB / 1.333 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/1.49, allocations: 241.8 kB / 1.334 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/1.493, allocations: 1.498 MB / 1.335 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/1.493, allocations: 14.25 kB / 1.335 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/1.493, allocations: 6.469 kB / 1.335 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00153/1.494, allocations: 1.092 MB / 1.336 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/1.499, allocations: 3.884 MB / 1.34 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/1.499, allocations: 5.438 kB / 1.34 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007342/1.5, allocations: 177.5 kB / 1.34 GB, free: 9.668 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/1.501, allocations: 289.6 kB / 1.34 GB, free: 9.648 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.107e-05/1.501, allocations: 30.03 kB / 1.341 GB, free: 9.648 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006372/1.502, allocations: 0.9133 MB / 1.341 GB, free: 9.117 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/1.502, allocations: 11.41 kB / 1.341 GB, free: 9.117 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/1.504, allocations: 2.139 MB / 1.344 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005485/1.505, allocations: 423.6 kB / 1.344 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/1.505, allocations: 34.67 kB / 1.344 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/1.506, allocations: 47.84 kB / 1.344 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/1.506, allocations: 86.77 kB / 1.344 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.025e-05/1.506, allocations: 44.34 kB / 1.344 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001461/1.508, allocations: 1.4 MB / 1.345 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.508, allocations: 0 / 1.345 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002441/1.51, allocations: 1.091 MB / 1.347 GB, free: 7.773 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (fan.vol.dynBal.medium.Xi[1],fan.vol.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 (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.003393/1.514, allocations: 3.08 MB / 1.35 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003659/1.517, allocations: 2.29 MB / 1.352 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.517, allocations: 0 / 1.352 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008705/1.518, allocations: 0.5722 MB / 1.352 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004598/1.523, allocations: 1.346 MB / 1.354 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02068/1.543, allocations: 18.35 MB / 1.372 GB, free: 15.54 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001131/1.545, allocations: 1.674 MB / 1.373 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002335/1.547, allocations: 0.5626 MB / 1.374 GB, free: 13.27 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.548, allocations: 0.9764 MB / 1.375 GB, free: 12.3 MB / 1.029 GB Notification: Performance of SimCode: time 8.52e-07/1.548, allocations: 0 / 1.375 GB, free: 12.3 MB / 1.029 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).