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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001554/0.001554, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001456/0.001456, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.218/2.218, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5744/0.5757, allocations: 140.4 MB / 0.9491 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.2611/0.8369, allocations: 281.4 MB / 1.224 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02797/0.8649, allocations: 21.52 MB / 1.245 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003443/0.8684, allocations: 103.4 kB / 1.245 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.8722, allocations: 1.442 MB / 1.246 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.5362/1.408, allocations: 4.858 MB / 1.251 GB, free: 27.28 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00623/1.415, allocations: 2.42 MB / 1.254 GB, free: 27.26 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01389/1.429, allocations: 9.688 MB / 1.263 GB, free: 27.25 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003929/1.432, allocations: 2.26 MB / 1.265 GB, free: 26.99 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008269/1.441, allocations: 2.943 MB / 1.268 GB, free: 26.98 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005424/1.446, allocations: 2.235 MB / 1.27 GB, free: 26.96 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005611/1.447, allocations: 142.2 kB / 1.27 GB, free: 26.96 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009354/1.456, allocations: 4.437 MB / 1.275 GB, free: 26.92 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00113/1.457, allocations: 0.8355 MB / 1.276 GB, free: 26.92 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00257/1.46, allocations: 1.477 MB / 1.277 GB, free: 26.92 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00804/1.468, allocations: 5.854 MB / 1.283 GB, free: 26.26 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.468, allocations: 3.562 kB / 1.283 GB, free: 26.26 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.072e-06/1.468, allocations: 4 kB / 1.283 GB, free: 26.26 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.944e-05/1.468, allocations: 0 / 1.283 GB, free: 26.26 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.008243/1.476, allocations: 3.556 MB / 1.286 GB, free: 24.67 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.476, allocations: 10.06 kB / 1.286 GB, free: 24.67 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003426/1.477, allocations: 264.9 kB / 1.286 GB, free: 24.62 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005085/1.482, allocations: 0.8297 MB / 1.287 GB, free: 24.44 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/1.485, allocations: 2.188 MB / 1.289 GB, free: 23.86 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.825e-05/1.485, allocations: 142.3 kB / 1.29 GB, free: 23.86 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/1.486, allocations: 184.5 kB / 1.29 GB, free: 23.86 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003408/1.489, allocations: 2.258 MB / 1.292 GB, free: 23.66 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/1.489, allocations: 5.719 kB / 1.292 GB, free: 23.66 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/1.489, allocations: 82.45 kB / 1.292 GB, free: 23.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.585e-05/1.489, allocations: 76.19 kB / 1.292 GB, free: 23.65 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/1.492, allocations: 1.969 MB / 1.294 GB, free: 23.63 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.01076/1.503, allocations: 9.297 MB / 1.303 GB, free: 19.49 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/1.505, allocations: 1.106 MB / 1.304 GB, free: 19.45 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008661/1.506, allocations: 0.6059 MB / 1.305 GB, free: 19.43 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006476/1.507, allocations: 0.7058 MB / 1.305 GB, free: 18.68 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/1.507, allocations: 45 kB / 1.305 GB, free: 18.64 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009731/1.508, allocations: 156.2 kB / 1.306 GB, free: 18.57 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=102): time 3.377e-06/1.508, allocations: 0 / 1.306 GB, free: 18.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=104): time 0.01199/1.52, allocations: 4.207 MB / 1.31 GB, free: 17.69 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/1.52, allocations: 62 kB / 1.31 GB, free: 17.63 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/1.522, allocations: 2.068 MB / 1.312 GB, free: 17.39 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001295/1.522, allocations: 54.36 kB / 1.312 GB, free: 17.36 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000694/1.523, allocations: 1.159 MB / 1.313 GB, free: 16.97 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/1.523, allocations: 370.5 kB / 1.313 GB, free: 16.73 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004044/1.524, allocations: 291.5 kB / 1.314 GB, free: 16.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.242e-05/1.524, allocations: 317.8 kB / 1.314 GB, free: 16.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008881/1.525, allocations: 0.5298 MB / 1.314 GB, free: 16.38 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/1.526, allocations: 1.04 MB / 1.315 GB, free: 15.79 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.01099/1.537, allocations: 3.534 MB / 1.319 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.513e-05/1.537, allocations: 2.812 kB / 1.319 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.003483/1.54, allocations: 1.916 MB / 1.321 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/1.54, allocations: 9.094 kB / 1.321 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/1.54, allocations: 16.59 kB / 1.321 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/1.542, allocations: 309.3 kB / 1.321 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/1.543, allocations: 313.4 kB / 1.321 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008255/1.544, allocations: 0.956 MB / 1.322 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002272/1.546, allocations: 181.7 kB / 1.322 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/1.546, allocations: 71.16 kB / 1.323 GB, free: 14.32 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.001708/1.548, allocations: 0.9985 MB / 1.324 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00107/1.549, allocations: 1.023 MB / 1.325 GB, free: 13.64 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.01053/1.56, allocations: 3.509 MB / 1.328 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.751e-05/1.56, allocations: 6.531 kB / 1.328 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of matching and sorting (n=184) (initialization_lambda0): time 0.003442/1.563, allocations: 1.883 MB / 1.33 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/1.563, allocations: 14.41 kB / 1.33 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/1.563, allocations: 14.44 kB / 1.33 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/1.564, allocations: 318.6 kB / 1.33 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.566, allocations: 306.6 kB / 1.33 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008135/1.566, allocations: 0.9533 MB / 1.331 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/1.569, allocations: 172.8 kB / 1.332 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/1.569, allocations: 72.48 kB / 1.332 GB, free: 12.18 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 (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.0004205/1.569, allocations: 274.5 kB / 1.332 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003193/1.57, allocations: 234.7 kB / 1.332 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002609/1.572, allocations: 1.508 MB / 1.334 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/1.572, allocations: 15.83 kB / 1.334 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.572, allocations: 0 / 1.334 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001636/1.574, allocations: 1.097 MB / 1.335 GB, free: 11.64 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 postOpt removeSimpleEquations (simulation): time 0.006097/1.58, allocations: 4.074 MB / 1.339 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/1.58, allocations: 6.906 kB / 1.339 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007897/1.581, allocations: 180.9 kB / 1.339 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/1.582, allocations: 296.1 kB / 1.339 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.006e-05/1.582, allocations: 35.08 kB / 1.339 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007194/1.583, allocations: 0.9161 MB / 1.34 GB, free: 9.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/1.583, allocations: 11.31 kB / 1.34 GB, free: 9.473 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/1.586, allocations: 2.171 MB / 1.342 GB, free: 8.738 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008239/1.587, allocations: 429.7 kB / 1.343 GB, free: 8.477 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/1.587, allocations: 31.73 kB / 1.343 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/1.588, allocations: 116.1 kB / 1.343 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/1.589, allocations: 89 kB / 1.343 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-05/1.589, allocations: 43.92 kB / 1.343 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001737/1.59, allocations: 1.395 MB / 1.344 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.71e-07/1.59, allocations: 0 / 1.344 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003108/1.593, allocations: 1.092 MB / 1.345 GB, free: 7.992 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (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.00393/1.597, allocations: 3.1 MB / 1.348 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003813/1.601, allocations: 2.159 MB / 1.35 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/1.601, allocations: 4 kB / 1.35 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001019/1.602, allocations: 0.573 MB / 1.351 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0054/1.608, allocations: 1.277 MB / 1.352 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03204/1.64, allocations: 19.16 MB / 1.371 GB, free: 1.543 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/1.641, allocations: 1.686 MB / 1.373 GB, free: 15.82 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002659/1.644, allocations: 0.575 MB / 1.373 GB, free: 15.25 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/1.645, allocations: 0.964 MB / 1.374 GB, free: 14.29 MB / 1.029 GB Notification: Performance of SimCode: time 6.12e-07/1.645, allocations: 0 / 1.374 GB, free: 14.29 MB / 1.029 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).