Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatentLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop,fileNamePrefix="Buildings_latest_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.001349/0.001349, 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.00159/0.00159, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.775/2.775, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 72.41 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.29, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatentLoop): time 0.7849/1.075, allocations: 284.2 MB / 1.341 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02639/1.101, allocations: 23.14 MB / 1.364 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004418/1.106, allocations: 115.3 kB / 1.364 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009728/1.116, allocations: 4.955 MB / 1.369 GB, free: 9.418 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01306/1.129, allocations: 5.245 MB / 1.374 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006784/1.135, allocations: 2.701 MB / 1.377 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01269/1.148, allocations: 10.02 MB / 1.386 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/1.151, allocations: 2.638 MB / 1.389 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006433/1.158, allocations: 3.308 MB / 1.392 GB, free: 324 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004368/1.162, allocations: 2.206 MB / 1.394 GB, free: 15.17 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0008694/1.163, allocations: 284.8 kB / 1.395 GB, free: 15.17 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009301/1.172, allocations: 4.284 MB / 1.399 GB, free: 13.26 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001291/1.174, allocations: 1.095 MB / 1.4 GB, free: 12.51 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002714/1.176, allocations: 1.802 MB / 1.402 GB, free: 11.33 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.009868/1.186, allocations: 6.297 MB / 1.408 GB, free: 7.43 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.186, allocations: 0 / 1.408 GB, free: 7.43 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.835e-06/1.186, allocations: 3.984 kB / 1.408 GB, free: 7.426 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.46e-05/1.186, allocations: 3.281 kB / 1.408 GB, free: 7.426 MB / 1.014 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.008727/1.195, allocations: 3.953 MB / 1.412 GB, free: 4.633 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/1.195, allocations: 10.09 kB / 1.412 GB, free: 4.633 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003136/1.196, allocations: 265.9 kB / 1.412 GB, free: 4.43 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005163/1.201, allocations: 0.8469 MB / 1.413 GB, free: 3.758 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/1.206, allocations: 3.152 MB / 1.416 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/1.206, allocations: 143.7 kB / 1.416 GB, free: 468 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/1.206, allocations: 190.7 kB / 1.416 GB, free: 280 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003658/1.21, allocations: 2.25 MB / 1.418 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.639e-05/1.21, allocations: 3.938 kB / 1.418 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001791/1.21, allocations: 79.2 kB / 1.418 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.916e-05/1.21, allocations: 79.47 kB / 1.418 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003454/1.213, allocations: 1.938 MB / 1.42 GB, free: 11.87 MB / 1.029 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.01213/1.226, allocations: 9.798 MB / 1.43 GB, free: 1.555 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/1.228, allocations: 1.098 MB / 1.431 GB, free: 464 kB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000924/1.228, allocations: 0.5818 MB / 1.432 GB, free: 15.87 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007456/1.229, allocations: 0.7038 MB / 1.432 GB, free: 15.02 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/1.229, allocations: 47.5 kB / 1.432 GB, free: 14.96 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009207/1.23, allocations: 171.3 kB / 1.432 GB, free: 14.8 MB / 1.045 GB Notification: Performance of pre-optimization done (n=99): time 2.825e-06/1.23, allocations: 0 / 1.432 GB, free: 14.8 MB / 1.045 GB Notification: Performance of matching and sorting (n=101): time 0.009985/1.24, allocations: 3.978 MB / 1.436 GB, free: 10.75 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/1.24, allocations: 64.41 kB / 1.436 GB, free: 10.67 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003403/1.244, allocations: 2.646 MB / 1.439 GB, free: 8.012 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001144/1.244, allocations: 49.7 kB / 1.439 GB, free: 7.957 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009641/1.245, allocations: 1.306 MB / 1.44 GB, free: 6.648 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.000295/1.245, allocations: 360.2 kB / 1.441 GB, free: 6.297 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005139/1.246, allocations: 402.5 kB / 1.441 GB, free: 5.898 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 8.023e-05/1.246, allocations: 305.1 kB / 1.441 GB, free: 5.598 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/1.247, allocations: 0.6918 MB / 1.442 GB, free: 4.902 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/1.248, allocations: 1.251 MB / 1.443 GB, free: 3.418 MB / 1.045 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.01137/1.26, allocations: 3.824 MB / 1.447 GB, free: 15.38 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/1.26, allocations: 8 kB / 1.447 GB, free: 15.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004045/1.264, allocations: 2.337 MB / 1.449 GB, free: 13.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/1.264, allocations: 8 kB / 1.449 GB, free: 13.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/1.264, allocations: 16 kB / 1.449 GB, free: 13 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/1.265, allocations: 315.2 kB / 1.45 GB, free: 12.69 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/1.267, allocations: 351.5 kB / 1.45 GB, free: 12.35 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/1.268, allocations: 0.9658 MB / 1.451 GB, free: 11.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/1.27, allocations: 93.88 kB / 1.451 GB, free: 11.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/1.27, allocations: 79.98 kB / 1.451 GB, free: 11.19 MB / 1.061 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.002125/1.272, allocations: 1.277 MB / 1.452 GB, free: 9.906 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001511/1.274, allocations: 1.25 MB / 1.453 GB, free: 8.426 MB / 1.061 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.0113/1.285, allocations: 3.825 MB / 1.457 GB, free: 4.379 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.107e-05/1.285, allocations: 4 kB / 1.457 GB, free: 4.375 MB / 1.061 GB Notification: Performance of matching and sorting (n=248) (initialization_lambda0): time 0.003904/1.289, allocations: 2.343 MB / 1.459 GB, free: 2.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/1.289, allocations: 20.06 kB / 1.46 GB, free: 2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/1.289, allocations: 16 kB / 1.46 GB, free: 1.984 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001335/1.29, allocations: 313.2 kB / 1.46 GB, free: 1.676 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/1.292, allocations: 355.5 kB / 1.46 GB, free: 1.328 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009777/1.293, allocations: 0.9493 MB / 1.461 GB, free: 364 kB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/1.295, allocations: 108.2 kB / 1.461 GB, free: 256 kB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/1.295, allocations: 83.98 kB / 1.461 GB, free: 172 kB / 1.061 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.0004101/1.295, allocations: 287.7 kB / 1.462 GB, free: 15.88 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/1.296, allocations: 272.6 kB / 1.462 GB, free: 15.61 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002773/1.299, allocations: 1.48 MB / 1.463 GB, free: 14.11 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/1.299, allocations: 15.98 kB / 1.463 GB, free: 14.1 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.299, allocations: 0 / 1.463 GB, free: 14.1 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001713/1.3, allocations: 1.05 MB / 1.464 GB, free: 13.04 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007154/1.308, allocations: 4.09 MB / 1.468 GB, free: 8.777 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/1.308, allocations: 4 kB / 1.468 GB, free: 8.773 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008121/1.308, allocations: 179.7 kB / 1.468 GB, free: 8.598 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/1.31, allocations: 287.4 kB / 1.469 GB, free: 8.316 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/1.31, allocations: 32 kB / 1.469 GB, free: 8.285 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000852/1.311, allocations: 0.9074 MB / 1.47 GB, free: 7.352 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/1.311, allocations: 11.94 kB / 1.47 GB, free: 7.34 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003166/1.314, allocations: 2.147 MB / 1.472 GB, free: 5.082 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009871/1.315, allocations: 481.5 kB / 1.472 GB, free: 4.59 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004719/1.315, allocations: 24 kB / 1.472 GB, free: 4.566 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.317, allocations: 58.86 kB / 1.472 GB, free: 4.512 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/1.317, allocations: 76.39 kB / 1.472 GB, free: 4.438 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.009e-05/1.317, allocations: 51.97 kB / 1.472 GB, free: 4.387 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.002536/1.32, allocations: 1.776 MB / 1.474 GB, free: 2.613 MB / 1.076 GB Notification: Performance of sort global known variables: time 3.01e-07/1.32, allocations: 0 / 1.474 GB, free: 2.613 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.003359/1.323, allocations: 1.246 MB / 1.475 GB, free: 1.367 MB / 1.076 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.004489/1.327, allocations: 3.223 MB / 1.479 GB, free: 14.07 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.00516/1.333, allocations: 2.755 MB / 1.481 GB, free: 11.32 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/1.333, allocations: 4 kB / 1.481 GB, free: 11.32 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.334, allocations: 0.5546 MB / 1.482 GB, free: 10.77 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006585/1.34, allocations: 1.543 MB / 1.483 GB, free: 9.266 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02883/1.369, allocations: 21.73 MB / 1.504 GB, free: 1.566 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/1.371, allocations: 1.855 MB / 1.506 GB, free: 15.68 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.002968/1.374, allocations: 0.6779 MB / 1.507 GB, free: 15 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/1.375, allocations: 1.149 MB / 1.508 GB, free: 13.86 MB / 1.123 GB Notification: Performance of SimCode: time 6.31e-07/1.375, allocations: 0 / 1.508 GB, free: 13.86 MB / 1.123 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).