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.001498/0.001498, allocations: 107.3 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.001939/0.001939, allocations: 189 kB / 16.25 MB, free: 6.152 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.41 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.308/2.308, allocations: 390.2 MB / 0.6644 GB, free: 0.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 71.88 kB / 0.8122 GB, free: 14.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5262/0.5278, allocations: 140.4 MB / 0.9492 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.2616/0.7895, allocations: 280.4 MB / 1.223 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02896/0.8185, allocations: 21.2 MB / 1.244 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003523/0.8221, allocations: 103.4 kB / 1.244 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004478/0.8266, allocations: 1.493 MB / 1.245 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.5106/1.337, allocations: 4.886 MB / 1.25 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005957/1.343, allocations: 2.469 MB / 1.253 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01006/1.353, allocations: 7.249 MB / 1.26 GB, free: 28.05 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004057/1.357, allocations: 2.621 MB / 1.262 GB, free: 27.77 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007544/1.365, allocations: 3.371 MB / 1.265 GB, free: 27.74 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004917/1.37, allocations: 2.313 MB / 1.268 GB, free: 27.73 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000916/1.371, allocations: 282.1 kB / 1.268 GB, free: 27.73 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009155/1.38, allocations: 4.263 MB / 1.272 GB, free: 27.69 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002119/1.382, allocations: 0.9768 MB / 1.273 GB, free: 27.69 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0038/1.386, allocations: 1.626 MB / 1.275 GB, free: 27.69 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009061/1.395, allocations: 5.958 MB / 1.281 GB, free: 27.05 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/1.395, allocations: 0 / 1.281 GB, free: 27.05 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.713e-06/1.395, allocations: 0.875 kB / 1.281 GB, free: 27.05 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.47e-05/1.395, allocations: 0 / 1.281 GB, free: 27.05 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.007464/1.403, allocations: 3.566 MB / 1.284 GB, free: 25.46 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/1.403, allocations: 11.22 kB / 1.284 GB, free: 25.46 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002927/1.403, allocations: 267 kB / 1.284 GB, free: 25.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004939/1.408, allocations: 0.8266 MB / 1.285 GB, free: 25.26 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003175/1.411, allocations: 2.174 MB / 1.287 GB, free: 24.69 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/1.411, allocations: 147.3 kB / 1.287 GB, free: 24.68 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/1.411, allocations: 188.3 kB / 1.288 GB, free: 24.68 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003283/1.415, allocations: 2.264 MB / 1.29 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.959e-05/1.415, allocations: 3 kB / 1.29 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/1.415, allocations: 80.38 kB / 1.29 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.916e-05/1.415, allocations: 73.56 kB / 1.29 GB, free: 24.48 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002998/1.418, allocations: 1.972 MB / 1.292 GB, free: 24.46 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.01052/1.429, allocations: 9.29 MB / 1.301 GB, free: 20.38 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/1.43, allocations: 1.109 MB / 1.302 GB, free: 20.34 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008996/1.431, allocations: 0.6072 MB / 1.303 GB, free: 20.33 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006401/1.432, allocations: 0.7054 MB / 1.303 GB, free: 19.58 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/1.432, allocations: 53.75 kB / 1.303 GB, free: 19.54 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001207/1.433, allocations: 156.2 kB / 1.303 GB, free: 19.47 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=102): time 4.098e-06/1.433, allocations: 1.156 kB / 1.303 GB, free: 19.47 MB / 0.9981 GB Notification: Performance of matching and sorting (n=104): time 0.01327/1.447, allocations: 4.208 MB / 1.308 GB, free: 18.64 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/1.447, allocations: 66.47 kB / 1.308 GB, free: 18.58 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/1.45, allocations: 2.068 MB / 1.31 GB, free: 18.35 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001666/1.451, allocations: 52.39 kB / 1.31 GB, free: 18.32 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008281/1.452, allocations: 1.16 MB / 1.311 GB, free: 17.92 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/1.452, allocations: 375.6 kB / 1.311 GB, free: 17.69 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004717/1.452, allocations: 289.5 kB / 1.311 GB, free: 17.66 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.932e-05/1.452, allocations: 305.8 kB / 1.312 GB, free: 17.36 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009107/1.453, allocations: 0.5352 MB / 1.312 GB, free: 17.34 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/1.454, allocations: 1.037 MB / 1.313 GB, free: 16.76 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.01044/1.465, allocations: 3.539 MB / 1.317 GB, free: 16.11 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.698e-05/1.465, allocations: 2.906 kB / 1.317 GB, free: 16.11 MB / 0.9981 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.003411/1.468, allocations: 1.909 MB / 1.319 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/1.468, allocations: 11.88 kB / 1.319 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.877e-05/1.468, allocations: 12.97 kB / 1.319 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/1.47, allocations: 316.4 kB / 1.319 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/1.471, allocations: 307.3 kB / 1.319 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000823/1.472, allocations: 0.9587 MB / 1.32 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.474, allocations: 186.4 kB / 1.32 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/1.474, allocations: 73.58 kB / 1.32 GB, free: 15.34 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.001725/1.476, allocations: 1.002 MB / 1.321 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001065/1.477, allocations: 1.016 MB / 1.322 GB, free: 14.66 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.01035/1.487, allocations: 3.51 MB / 1.326 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.081e-05/1.487, allocations: 6.688 kB / 1.326 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of matching and sorting (n=184) (initialization_lambda0): time 0.003641/1.491, allocations: 1.886 MB / 1.328 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/1.491, allocations: 14 kB / 1.328 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/1.491, allocations: 14.19 kB / 1.328 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/1.492, allocations: 316.9 kB / 1.328 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/1.494, allocations: 307 kB / 1.328 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009579/1.495, allocations: 0.9591 MB / 1.329 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.497, allocations: 158.3 kB / 1.329 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/1.498, allocations: 78.33 kB / 1.329 GB, free: 13.19 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.0004329/1.498, allocations: 281.5 kB / 1.33 GB, free: 13 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007312/1.499, allocations: 234.7 kB / 1.33 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/1.502, allocations: 1.515 MB / 1.331 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/1.502, allocations: 11.44 kB / 1.331 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/1.502, allocations: 4 kB / 1.331 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001635/1.503, allocations: 1.098 MB / 1.333 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006958/1.51, allocations: 3.882 MB / 1.336 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/1.51, allocations: 6.344 kB / 1.336 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008061/1.511, allocations: 183.2 kB / 1.336 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/1.513, allocations: 285.3 kB / 1.337 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.483e-05/1.513, allocations: 33.36 kB / 1.337 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006909/1.513, allocations: 0.9067 MB / 1.338 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/1.513, allocations: 10.69 kB / 1.338 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/1.517, allocations: 2.178 MB / 1.34 GB, free: 10.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/1.518, allocations: 425.9 kB / 1.34 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000557/1.518, allocations: 25.02 kB / 1.34 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/1.52, allocations: 112.6 kB / 1.34 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/1.52, allocations: 83.23 kB / 1.34 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-05/1.52, allocations: 49.14 kB / 1.34 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002213/1.522, allocations: 1.395 MB / 1.342 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.4e-07/1.522, allocations: 0 / 1.342 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003784/1.526, allocations: 1.095 MB / 1.343 GB, free: 10.39 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 (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.004111/1.53, allocations: 3.104 MB / 1.346 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00441/1.535, allocations: 2.308 MB / 1.348 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/1.535, allocations: 11.25 kB / 1.348 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009985/1.536, allocations: 0.5721 MB / 1.349 GB, free: 8.961 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005913/1.542, allocations: 1.351 MB / 1.35 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03453/1.576, allocations: 19.14 MB / 1.369 GB, free: 5.332 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/1.578, allocations: 1.678 MB / 1.37 GB, free: 3.617 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002702/1.58, allocations: 0.5758 MB / 1.371 GB, free: 3.047 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/1.582, allocations: 0.964 MB / 1.372 GB, free: 2.082 MB / 1.014 GB Notification: Performance of SimCode: time 5.61e-07/1.582, allocations: 0 / 1.372 GB, free: 2.082 MB / 1.014 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).