Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_10_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.001783/0.001783, allocations: 108 kB / 15.61 MB, free: 152 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.002575/0.002576, allocations: 191.8 kB / 16.53 MB, free: 6.664 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 63.91 kB / 0.8694 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5604/0.5618, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.7699/1.332, allocations: 284.2 MB / 1.295 GB, free: 25.88 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02759/1.359, allocations: 23.14 MB / 1.318 GB, free: 25.6 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004187/1.364, allocations: 117.3 kB / 1.318 GB, free: 25.6 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009337/1.373, allocations: 4.961 MB / 1.323 GB, free: 25.53 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01258/1.386, allocations: 5.24 MB / 1.328 GB, free: 25.31 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006216/1.392, allocations: 2.697 MB / 1.33 GB, free: 25.25 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0121/1.404, allocations: 10.01 MB / 1.34 GB, free: 25.19 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004108/1.408, allocations: 2.658 MB / 1.343 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007099/1.415, allocations: 3.3 MB / 1.346 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004072/1.419, allocations: 2.22 MB / 1.348 GB, free: 23.95 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001113/1.42, allocations: 284.8 kB / 1.348 GB, free: 23.95 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00916/1.429, allocations: 4.274 MB / 1.352 GB, free: 23.06 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001535/1.431, allocations: 1.089 MB / 1.354 GB, free: 22.59 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003251/1.434, allocations: 1.798 MB / 1.355 GB, free: 21.52 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01036/1.445, allocations: 6.3 MB / 1.361 GB, free: 19.29 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.445, allocations: 0 / 1.361 GB, free: 19.29 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.242e-06/1.445, allocations: 3.125 kB / 1.361 GB, free: 19.29 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.000154/1.445, allocations: 0 / 1.361 GB, free: 19.29 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: 470 * Number of variables: 470 Notification: Performance of Generate backend data structure: time 0.009291/1.454, allocations: 3.966 MB / 1.365 GB, free: 16.5 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/1.454, allocations: 14.05 kB / 1.365 GB, free: 16.49 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000277/1.454, allocations: 265.3 kB / 1.366 GB, free: 16.29 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005064/1.46, allocations: 0.848 MB / 1.366 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00448/1.464, allocations: 3.135 MB / 1.369 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/1.464, allocations: 145.3 kB / 1.37 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/1.464, allocations: 202.8 kB / 1.37 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003237/1.468, allocations: 2.253 MB / 1.372 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/1.468, allocations: 2.531 kB / 1.372 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001751/1.468, allocations: 78.44 kB / 1.372 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.299e-05/1.468, allocations: 78.47 kB / 1.372 GB, free: 12.26 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003177/1.471, allocations: 1.94 MB / 1.374 GB, free: 11.29 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.01091/1.482, allocations: 9.791 MB / 1.384 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/1.484, allocations: 1.089 MB / 1.385 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008543/1.485, allocations: 0.5866 MB / 1.385 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006279/1.485, allocations: 0.7051 MB / 1.386 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/1.485, allocations: 51.55 kB / 1.386 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009872/1.486, allocations: 162.5 kB / 1.386 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=99): time 3.116e-06/1.486, allocations: 3.938 kB / 1.386 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of matching and sorting (n=101): time 0.009975/1.496, allocations: 3.974 MB / 1.39 GB, free: 13.27 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/1.497, allocations: 72.33 kB / 1.39 GB, free: 13.19 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/1.5, allocations: 2.642 MB / 1.393 GB, free: 10.54 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001832/1.501, allocations: 49.7 kB / 1.393 GB, free: 10.48 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/1.502, allocations: 1.305 MB / 1.394 GB, free: 9.172 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004325/1.502, allocations: 366.3 kB / 1.394 GB, free: 8.816 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005951/1.503, allocations: 402.1 kB / 1.395 GB, free: 8.418 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001161/1.503, allocations: 301.1 kB / 1.395 GB, free: 8.121 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/1.504, allocations: 0.688 MB / 1.396 GB, free: 7.43 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/1.506, allocations: 1.254 MB / 1.397 GB, free: 5.949 MB / 1.014 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.01132/1.517, allocations: 3.82 MB / 1.401 GB, free: 1.965 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.287e-05/1.517, allocations: 4 kB / 1.401 GB, free: 1.961 MB / 1.014 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004115/1.521, allocations: 2.355 MB / 1.403 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/1.521, allocations: 8 kB / 1.403 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/1.521, allocations: 16 kB / 1.403 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/1.523, allocations: 309.1 kB / 1.403 GB, free: 15.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/1.524, allocations: 356.7 kB / 1.404 GB, free: 15.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009753/1.525, allocations: 0.9658 MB / 1.405 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/1.527, allocations: 96.34 kB / 1.405 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/1.527, allocations: 79.98 kB / 1.405 GB, free: 13.88 MB / 1.029 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.002144/1.529, allocations: 1.269 MB / 1.406 GB, free: 12.6 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001512/1.531, allocations: 1.253 MB / 1.407 GB, free: 11.12 MB / 1.029 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.01124/1.542, allocations: 3.818 MB / 1.411 GB, free: 7.148 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.578e-05/1.542, allocations: 4 kB / 1.411 GB, free: 7.145 MB / 1.029 GB Notification: Performance of matching and sorting (n=248) (initialization_lambda0): time 0.004183/1.546, allocations: 2.347 MB / 1.413 GB, free: 4.871 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/1.546, allocations: 15.94 kB / 1.413 GB, free: 4.855 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/1.546, allocations: 16 kB / 1.413 GB, free: 4.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/1.548, allocations: 319 kB / 1.414 GB, free: 4.527 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/1.549, allocations: 353 kB / 1.414 GB, free: 4.207 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009482/1.55, allocations: 0.9668 MB / 1.415 GB, free: 3.223 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/1.552, allocations: 94.92 kB / 1.415 GB, free: 3.129 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/1.553, allocations: 83.97 kB / 1.415 GB, free: 3.047 MB / 1.029 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: 68 * 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 (192): * Single equations (assignments): 188 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0004067/1.553, allocations: 296.5 kB / 1.415 GB, free: 2.777 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006524/1.554, allocations: 268.6 kB / 1.416 GB, free: 2.512 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/1.557, allocations: 1.48 MB / 1.417 GB, free: 1.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/1.557, allocations: 11.94 kB / 1.417 GB, free: 1.008 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.557, allocations: 0 / 1.417 GB, free: 1.008 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001723/1.558, allocations: 1.055 MB / 1.418 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00743/1.566, allocations: 4.077 MB / 1.422 GB, free: 11.74 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.566, allocations: 4 kB / 1.422 GB, free: 11.74 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/1.567, allocations: 178.2 kB / 1.422 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001327/1.568, allocations: 289.8 kB / 1.422 GB, free: 11.29 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.623e-05/1.568, allocations: 28 kB / 1.422 GB, free: 11.26 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008942/1.569, allocations: 0.9214 MB / 1.423 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.569, allocations: 10.91 kB / 1.423 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/1.573, allocations: 2.146 MB / 1.425 GB, free: 8.066 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/1.574, allocations: 481.4 kB / 1.426 GB, free: 7.574 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006565/1.574, allocations: 31.98 kB / 1.426 GB, free: 7.543 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/1.576, allocations: 57.39 kB / 1.426 GB, free: 7.488 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/1.576, allocations: 80.16 kB / 1.426 GB, free: 7.414 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/1.576, allocations: 47.98 kB / 1.426 GB, free: 7.367 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.003243/1.58, allocations: 1.772 MB / 1.428 GB, free: 5.598 MB / 1.045 GB Notification: Performance of sort global known variables: time 5.91e-07/1.58, allocations: 0 / 1.428 GB, free: 5.598 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.005146/1.585, allocations: 1.244 MB / 1.429 GB, free: 4.355 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (83): * Single equations (assignments): 80 * 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.005378/1.59, allocations: 3.22 MB / 1.432 GB, free: 1.078 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.005486/1.596, allocations: 2.741 MB / 1.435 GB, free: 14.46 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.596, allocations: 4 kB / 1.435 GB, free: 14.45 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/1.597, allocations: 0.5576 MB / 1.435 GB, free: 13.92 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00776/1.605, allocations: 1.532 MB / 1.437 GB, free: 12.43 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.034/1.639, allocations: 21.74 MB / 1.458 GB, free: 4.848 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/1.641, allocations: 1.859 MB / 1.46 GB, free: 2.957 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.00318/1.644, allocations: 0.6778 MB / 1.461 GB, free: 2.281 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001622/1.645, allocations: 1.154 MB / 1.462 GB, free: 1.133 MB / 1.076 GB Notification: Performance of SimCode: time 9.62e-07/1.645, allocations: 0 / 1.462 GB, free: 1.133 MB / 1.076 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).