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.0008001/0.0008002, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005037/0.005037, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.293/1.293, allocations: 223.3 MB / 240.3 MB, free: 5.312 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.279/2.279, allocations: 390.9 MB / 0.6664 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003333, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6236/0.6239, allocations: 142.4 MB / 0.9552 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.2619/0.8858, allocations: 277.6 MB / 1.226 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02685/0.9127, allocations: 21.29 MB / 1.247 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003485/0.9163, allocations: 99.38 kB / 1.247 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003887/0.9202, allocations: 1.442 MB / 1.249 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.5387/1.459, allocations: 4.85 MB / 1.253 GB, free: 28.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0067/1.466, allocations: 2.429 MB / 1.256 GB, free: 28.46 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01416/1.48, allocations: 9.684 MB / 1.265 GB, free: 28.45 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004584/1.484, allocations: 2.19 MB / 1.267 GB, free: 28.2 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007519/1.492, allocations: 2.855 MB / 1.27 GB, free: 28.19 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005578/1.498, allocations: 2.13 MB / 1.272 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009164/1.498, allocations: 107 kB / 1.272 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009538/1.508, allocations: 4.408 MB / 1.277 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001496/1.51, allocations: 0.778 MB / 1.277 GB, free: 28.18 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003479/1.513, allocations: 1.433 MB / 1.279 GB, free: 28.15 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00991/1.523, allocations: 5.74 MB / 1.284 GB, free: 27.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/1.523, allocations: 1.781 kB / 1.284 GB, free: 27.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.654e-06/1.523, allocations: 0 / 1.284 GB, free: 27.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001622/1.523, allocations: 0 / 1.284 GB, free: 27.84 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.008291/1.531, allocations: 2.978 MB / 1.287 GB, free: 26.34 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/1.532, allocations: 12.5 kB / 1.287 GB, free: 26.34 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007103/1.532, allocations: 265.2 kB / 1.288 GB, free: 26.3 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005256/1.538, allocations: 0.8399 MB / 1.288 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/1.542, allocations: 2.19 MB / 1.29 GB, free: 25.54 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/1.542, allocations: 149.7 kB / 1.291 GB, free: 25.54 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004996/1.543, allocations: 186.4 kB / 1.291 GB, free: 25.54 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004909/1.548, allocations: 2.268 MB / 1.293 GB, free: 25.34 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.069e-05/1.548, allocations: 0 / 1.293 GB, free: 25.34 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/1.548, allocations: 76.47 kB / 1.293 GB, free: 25.34 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.194e-05/1.548, allocations: 77.2 kB / 1.293 GB, free: 25.33 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003849/1.552, allocations: 1.979 MB / 1.295 GB, free: 25.31 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.01192/1.564, allocations: 9.313 MB / 1.304 GB, free: 21.17 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/1.565, allocations: 1.11 MB / 1.305 GB, free: 21.13 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008564/1.566, allocations: 0.6069 MB / 1.306 GB, free: 21.11 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006135/1.567, allocations: 0.7028 MB / 1.307 GB, free: 20.36 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/1.567, allocations: 47.88 kB / 1.307 GB, free: 20.32 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00108/1.568, allocations: 161.9 kB / 1.307 GB, free: 20.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=102): time 2.605e-06/1.568, allocations: 0 / 1.307 GB, free: 20.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=104): time 0.01156/1.58, allocations: 4.25 MB / 1.311 GB, free: 19.36 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/1.58, allocations: 63.97 kB / 1.311 GB, free: 19.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/1.582, allocations: 2.063 MB / 1.313 GB, free: 19.07 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001172/1.583, allocations: 50.92 kB / 1.313 GB, free: 19.04 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006743/1.583, allocations: 1.17 MB / 1.314 GB, free: 18.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/1.584, allocations: 366.4 kB / 1.315 GB, free: 18.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/1.584, allocations: 127.8 kB / 1.315 GB, free: 18.39 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/1.584, allocations: 305.1 kB / 1.315 GB, free: 18.09 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008309/1.585, allocations: 0.5215 MB / 1.315 GB, free: 18.08 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/1.586, allocations: 1.04 MB / 1.316 GB, free: 17.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.009826/1.595, allocations: 3.568 MB / 1.32 GB, free: 16.79 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/1.595, allocations: 4.531 kB / 1.32 GB, free: 16.79 MB / 0.9981 GB Notification: Performance of matching and sorting (n=184) (initialization): time 0.003106/1.599, allocations: 1.911 MB / 1.322 GB, free: 16.61 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001998/1.599, allocations: 0.5036 MB / 1.322 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/1.599, allocations: 17.77 kB / 1.322 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/1.6, allocations: 326.3 kB / 1.323 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/1.601, allocations: 312.5 kB / 1.323 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000759/1.602, allocations: 0.9558 MB / 1.324 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/1.604, allocations: 175.7 kB / 1.324 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/1.604, allocations: 81.05 kB / 1.324 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/1.604, allocations: 3.625 kB / 1.324 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002431/1.607, allocations: 1.643 MB / 1.326 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/1.607, allocations: 19.31 kB / 1.326 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/1.608, allocations: 327.5 kB / 1.326 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/1.609, allocations: 309.5 kB / 1.326 GB, free: 15.35 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000718/1.61, allocations: 0.9536 MB / 1.327 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/1.612, allocations: 167.3 kB / 1.327 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/1.612, allocations: 72.97 kB / 1.327 GB, free: 14.8 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 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.001108/1.613, allocations: 0.6628 MB / 1.328 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/1.613, allocations: 235 kB / 1.328 GB, free: 14.46 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/1.616, allocations: 1.505 MB / 1.33 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/1.616, allocations: 12.44 kB / 1.33 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.616, allocations: 4 kB / 1.33 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001472/1.617, allocations: 1.096 MB / 1.331 GB, free: 14.12 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.005565/1.623, allocations: 4.083 MB / 1.335 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/1.623, allocations: 6.594 kB / 1.335 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000755/1.623, allocations: 184.2 kB / 1.335 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/1.625, allocations: 295.4 kB / 1.335 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/1.625, allocations: 35.28 kB / 1.335 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00065/1.625, allocations: 0.9104 MB / 1.336 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/1.625, allocations: 9.469 kB / 1.336 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/1.628, allocations: 2.178 MB / 1.338 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007499/1.629, allocations: 437.2 kB / 1.339 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/1.629, allocations: 33.02 kB / 1.339 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/1.63, allocations: 114 kB / 1.339 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/1.631, allocations: 88.56 kB / 1.339 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.415e-05/1.631, allocations: 48.48 kB / 1.339 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001597/1.632, allocations: 1.39 MB / 1.34 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.91e-07/1.632, allocations: 0 / 1.34 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002808/1.635, allocations: 1.098 MB / 1.342 GB, free: 10.34 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.003524/1.639, allocations: 3.098 MB / 1.345 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003577/1.642, allocations: 2.172 MB / 1.347 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/1.642, allocations: 0 / 1.347 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009474/1.643, allocations: 0.5757 MB / 1.347 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007494/1.651, allocations: 1.301 MB / 1.349 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03024/1.681, allocations: 19.22 MB / 1.367 GB, free: 10.14 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/1.682, allocations: 1.688 MB / 1.369 GB, free: 8.508 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002613/1.685, allocations: 0.5665 MB / 1.369 GB, free: 7.941 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.686, allocations: 0.967 MB / 1.37 GB, free: 7.719 MB / 1.014 GB Notification: Performance of SimCode: time 8.52e-07/1.686, allocations: 3.938 kB / 1.37 GB, free: 7.715 MB / 1.014 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).