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.001447/0.001447, 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.001615/0.001615, allocations: 193.8 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.52/1.52, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.397/2.397, allocations: 390.3 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001992, allocations: 67.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5626/0.5646, allocations: 140.4 MB / 0.9497 GB, free: 9.023 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.2774/0.8421, allocations: 283.8 MB / 1.227 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.5271/1.369, allocations: 21.32 MB / 1.248 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003755/1.373, allocations: 115.8 kB / 1.248 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004969/1.378, allocations: 1.679 MB / 1.249 GB, free: 26.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01281/1.391, allocations: 5.217 MB / 1.255 GB, free: 26.12 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006268/1.397, allocations: 2.679 MB / 1.257 GB, free: 26.08 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01086/1.408, allocations: 7.219 MB / 1.264 GB, free: 26.08 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003998/1.412, allocations: 2.627 MB / 1.267 GB, free: 25.77 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007405/1.419, allocations: 3.347 MB / 1.27 GB, free: 25.74 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004371/1.424, allocations: 2.165 MB / 1.272 GB, free: 25.74 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008006/1.425, allocations: 280.4 kB / 1.272 GB, free: 25.74 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009052/1.434, allocations: 4.107 MB / 1.276 GB, free: 25.7 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001768/1.436, allocations: 0.9656 MB / 1.277 GB, free: 25.7 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003137/1.439, allocations: 1.625 MB / 1.279 GB, free: 25.64 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01045/1.449, allocations: 5.732 MB / 1.285 GB, free: 24.99 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/1.449, allocations: 0 / 1.285 GB, free: 24.99 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.753e-06/1.449, allocations: 0 / 1.285 GB, free: 24.99 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001258/1.449, allocations: 1.062 kB / 1.285 GB, free: 24.99 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.008568/1.458, allocations: 3.558 MB / 1.288 GB, free: 23.4 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/1.458, allocations: 8.594 kB / 1.288 GB, free: 23.4 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003069/1.458, allocations: 259.4 kB / 1.288 GB, free: 23.36 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005186/1.463, allocations: 0.8239 MB / 1.289 GB, free: 23.2 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003768/1.467, allocations: 2.165 MB / 1.291 GB, free: 22.63 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.441e-05/1.467, allocations: 145.2 kB / 1.291 GB, free: 22.62 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002752/1.468, allocations: 185.3 kB / 1.292 GB, free: 22.62 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/1.471, allocations: 2.255 MB / 1.294 GB, free: 22.41 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/1.471, allocations: 0 / 1.294 GB, free: 22.41 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/1.471, allocations: 79.97 kB / 1.294 GB, free: 22.41 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-05/1.472, allocations: 77.31 kB / 1.294 GB, free: 22.41 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/1.475, allocations: 1.951 MB / 1.296 GB, free: 22.39 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.01136/1.486, allocations: 9.48 MB / 1.305 GB, free: 18.14 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001861/1.488, allocations: 1.106 MB / 1.306 GB, free: 18.11 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/1.489, allocations: 0.5996 MB / 1.307 GB, free: 18.09 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006133/1.49, allocations: 0.7066 MB / 1.307 GB, free: 17.34 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/1.49, allocations: 48.91 kB / 1.307 GB, free: 17.3 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008971/1.491, allocations: 155.9 kB / 1.308 GB, free: 17.23 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=100): time 3.276e-06/1.491, allocations: 0 / 1.308 GB, free: 17.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=102): time 0.01021/1.501, allocations: 4.049 MB / 1.312 GB, free: 16.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/1.501, allocations: 65.34 kB / 1.312 GB, free: 16.35 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/1.504, allocations: 2.078 MB / 1.314 GB, free: 16.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001324/1.504, allocations: 52.23 kB / 1.314 GB, free: 16.08 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007032/1.504, allocations: 1.172 MB / 1.315 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/1.505, allocations: 363.1 kB / 1.315 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/1.505, allocations: 295.5 kB / 1.315 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.206e-05/1.505, allocations: 302.2 kB / 1.316 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009293/1.506, allocations: 0.5336 MB / 1.316 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/1.507, allocations: 1.035 MB / 1.317 GB, free: 14.52 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.01075/1.518, allocations: 3.517 MB / 1.321 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/1.518, allocations: 6.906 kB / 1.321 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003837/1.522, allocations: 1.892 MB / 1.323 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/1.522, allocations: 18.17 kB / 1.323 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/1.522, allocations: 14.34 kB / 1.323 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/1.523, allocations: 316 kB / 1.323 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/1.524, allocations: 303.8 kB / 1.323 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008081/1.525, allocations: 0.9565 MB / 1.324 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/1.527, allocations: 83.88 kB / 1.324 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/1.527, allocations: 72.5 kB / 1.324 GB, free: 13.11 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.001697/1.529, allocations: 1.001 MB / 1.325 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001068/1.53, allocations: 1.023 MB / 1.326 GB, free: 12.42 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.01046/1.541, allocations: 3.495 MB / 1.33 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.341e-05/1.541, allocations: 6.188 kB / 1.33 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of matching and sorting (n=182) (initialization_lambda0): time 0.003123/1.544, allocations: 1.864 MB / 1.331 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/1.544, allocations: 18.59 kB / 1.332 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/1.544, allocations: 16.34 kB / 1.332 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/1.545, allocations: 316 kB / 1.332 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/1.546, allocations: 297.5 kB / 1.332 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007507/1.547, allocations: 0.9563 MB / 1.333 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/1.549, allocations: 95.12 kB / 1.333 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/1.549, allocations: 72.77 kB / 1.333 GB, free: 10.97 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.0003581/1.549, allocations: 267.7 kB / 1.333 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/1.55, allocations: 241.3 kB / 1.334 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/1.552, allocations: 1.501 MB / 1.335 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/1.552, allocations: 11.66 kB / 1.335 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.552, allocations: 3.938 kB / 1.335 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001818/1.554, allocations: 1.091 MB / 1.336 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006218/1.561, allocations: 3.885 MB / 1.34 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/1.561, allocations: 6.156 kB / 1.34 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008437/1.561, allocations: 185.3 kB / 1.34 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/1.563, allocations: 293.4 kB / 1.34 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.706e-05/1.563, allocations: 29.12 kB / 1.341 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007758/1.564, allocations: 0.9185 MB / 1.341 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.564, allocations: 9.062 kB / 1.341 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/1.567, allocations: 2.138 MB / 1.344 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009465/1.568, allocations: 424.2 kB / 1.344 GB, free: 8.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/1.568, allocations: 24.88 kB / 1.344 GB, free: 8.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/1.569, allocations: 51.44 kB / 1.344 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/1.57, allocations: 82.28 kB / 1.344 GB, free: 8.223 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-05/1.57, allocations: 43.92 kB / 1.344 GB, free: 8.219 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001852/1.572, allocations: 1.403 MB / 1.345 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.572, allocations: 0 / 1.345 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003014/1.575, allocations: 1.09 MB / 1.347 GB, free: 7.805 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.003828/1.578, allocations: 3.084 MB / 1.35 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004259/1.583, allocations: 2.288 MB / 1.352 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.583, allocations: 4 kB / 1.352 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001023/1.584, allocations: 0.5718 MB / 1.352 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006154/1.59, allocations: 1.345 MB / 1.354 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/1.616, allocations: 18.35 MB / 1.372 GB, free: 15.52 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001259/1.617, allocations: 1.678 MB / 1.373 GB, free: 13.8 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002677/1.62, allocations: 0.5598 MB / 1.374 GB, free: 13.25 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.621, allocations: 0.9787 MB / 1.375 GB, free: 12.27 MB / 1.029 GB Notification: Performance of SimCode: time 6.01e-07/1.621, allocations: 4 kB / 1.375 GB, free: 12.27 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).