Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",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.001232/0.001232, allocations: 107 kB / 16.27 MB, free: 5.93 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.001185/0.001185, allocations: 186.5 kB / 17.2 MB, free: 5.574 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.259/1.259, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7191/0.7191, allocations: 122.9 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 71.83 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2832, allocations: 77.91 MB / 0.5673 GB, free: 32.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5807/0.8639, allocations: 380.1 MB / 0.9384 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0556/0.9196, allocations: 46.53 MB / 0.9839 GB, free: 11.74 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005795/0.9254, allocations: 175.1 kB / 0.984 GB, free: 11.57 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.01574/0.9412, allocations: 8.587 MB / 0.9924 GB, free: 2.957 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01828/0.9595, allocations: 7.33 MB / 0.9996 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00869/0.9682, allocations: 3.833 MB / 1.003 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.02118/0.9894, allocations: 17.1 MB / 1.02 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008278/0.9977, allocations: 5.579 MB / 1.025 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3725/1.37, allocations: 6.264 MB / 1.032 GB, free: 20.97 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008069/1.378, allocations: 3.713 MB / 1.035 GB, free: 20.96 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001857/1.38, allocations: 0.4926 MB / 1.036 GB, free: 20.96 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01166/1.392, allocations: 6.325 MB / 1.042 GB, free: 20.96 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.002283/1.394, allocations: 1.987 MB / 1.044 GB, free: 20.96 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.005641/1.4, allocations: 3.137 MB / 1.047 GB, free: 20.18 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01376/1.414, allocations: 10.17 MB / 1.057 GB, free: 19.16 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.414, allocations: 0.7188 kB / 1.057 GB, free: 19.16 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/1.414, allocations: 0 / 1.057 GB, free: 19.16 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001609/1.414, allocations: 1.688 kB / 1.057 GB, free: 19.16 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 864 * Number of variables: 864 Notification: Performance of Generate backend data structure: time 0.01131/1.425, allocations: 6.442 MB / 1.063 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/1.425, allocations: 10.66 kB / 1.063 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005233/1.426, allocations: 475.1 kB / 1.064 GB, free: 16.16 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/1.437, allocations: 2.014 MB / 1.066 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008954/1.446, allocations: 5.605 MB / 1.071 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001369/1.447, allocations: 0.6002 MB / 1.072 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005033/1.448, allocations: 348.6 kB / 1.072 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007515/1.455, allocations: 4.532 MB / 1.076 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.783e-05/1.455, allocations: 6.125 kB / 1.076 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003264/1.456, allocations: 144.4 kB / 1.077 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.482e-05/1.456, allocations: 133.5 kB / 1.077 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008033/1.464, allocations: 4.004 MB / 1.081 GB, free: 14.27 MB / 0.7325 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.02278/1.486, allocations: 19.75 MB / 1.1 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003591/1.49, allocations: 1.771 MB / 1.102 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/1.492, allocations: 0.9138 MB / 1.102 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005302/1.493, allocations: 416.5 kB / 1.103 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002208/1.495, allocations: 1.066 MB / 1.104 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=127): time 3.146e-06/1.495, allocations: 0 / 1.104 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of matching and sorting (n=127): time 0.007536/1.502, allocations: 2.922 MB / 1.107 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/1.502, allocations: 143.6 kB / 1.107 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005839/1.508, allocations: 4.656 MB / 1.111 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0002338/1.508, allocations: 57.83 kB / 1.111 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.001558/1.51, allocations: 2.437 MB / 1.114 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003513/1.51, allocations: 472.1 kB / 1.114 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008071/1.511, allocations: 0.6846 MB / 1.115 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 2.988e-05/1.511, allocations: 301.1 kB / 1.115 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00286/1.514, allocations: 1.411 MB / 1.117 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003291/1.517, allocations: 2.547 MB / 1.119 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005661/1.523, allocations: 3.728 MB / 1.123 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/1.523, allocations: 8.344 kB / 1.123 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.008117/1.531, allocations: 4.344 MB / 1.127 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.869e-05/1.531, allocations: 46.17 kB / 1.127 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/1.531, allocations: 34.28 kB / 1.127 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.204e-05/1.531, allocations: 49.19 kB / 1.127 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/1.534, allocations: 0.7371 MB / 1.128 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.879e-05/1.534, allocations: 70.88 kB / 1.128 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/1.539, allocations: 0.5739 MB / 1.128 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/1.539, allocations: 140 kB / 1.129 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004959/1.544, allocations: 2.567 MB / 1.131 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003722/1.548, allocations: 2.531 MB / 1.134 GB, free: 8.168 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006138/1.554, allocations: 3.747 MB / 1.137 GB, free: 5 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.036e-05/1.554, allocations: 8 kB / 1.137 GB, free: 4.992 MB / 0.7481 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.009176/1.563, allocations: 4.336 MB / 1.142 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.145e-05/1.563, allocations: 48.23 kB / 1.142 GB, free: 1.809 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.436e-05/1.563, allocations: 32 kB / 1.142 GB, free: 1.777 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.776e-05/1.563, allocations: 51.94 kB / 1.142 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002902/1.566, allocations: 0.7354 MB / 1.142 GB, free: 1.055 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.917e-05/1.566, allocations: 70.78 kB / 1.142 GB, free: 1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004728/1.571, allocations: 485 kB / 1.143 GB, free: 0.5703 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/1.571, allocations: 147.6 kB / 1.143 GB, free: 464 kB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (352): * Single equations (assignments): 346 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006423/1.572, allocations: 367.7 kB / 1.143 GB, free: 208 kB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.573, allocations: 438.4 kB / 1.144 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/1.579, allocations: 2.322 MB / 1.146 GB, free: 14.1 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/1.579, allocations: 16 kB / 1.146 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/1.579, allocations: 0 / 1.146 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004265/1.583, allocations: 1.923 MB / 1.148 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01657/1.6, allocations: 6.711 MB / 1.155 GB, free: 7.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.66e-05/1.6, allocations: 12 kB / 1.155 GB, free: 7.488 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/1.602, allocations: 330.5 kB / 1.155 GB, free: 7.188 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/1.602, allocations: 55.89 kB / 1.155 GB, free: 7.141 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/1.602, allocations: 45.36 kB / 1.155 GB, free: 7.113 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/1.603, allocations: 1.55 MB / 1.156 GB, free: 5.562 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-05/1.603, allocations: 22.22 kB / 1.156 GB, free: 5.547 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007926/1.611, allocations: 3.385 MB / 1.16 GB, free: 2.23 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002156/1.613, allocations: 0.7256 MB / 1.16 GB, free: 1.48 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/1.615, allocations: 43.92 kB / 1.161 GB, free: 1.438 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003406/1.618, allocations: 203.8 kB / 1.161 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/1.618, allocations: 121.8 kB / 1.161 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/1.619, allocations: 63.97 kB / 1.161 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.006836/1.625, allocations: 3.116 MB / 1.164 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.4e-07/1.625, allocations: 4 kB / 1.164 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.008559/1.634, allocations: 2.299 MB / 1.166 GB, free: 11.66 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 4 (conPI.I.y,vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009583/1.644, allocations: 4.469 MB / 1.171 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.01156/1.655, allocations: 5.111 MB / 1.176 GB, free: 2.234 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/1.655, allocations: 4.438 kB / 1.176 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002755/1.658, allocations: 1.059 MB / 1.177 GB, free: 1.203 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01109/1.669, allocations: 2.145 MB / 1.179 GB, free: 15.19 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07534/1.744, allocations: 40.63 MB / 1.218 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003797/1.748, allocations: 3.015 MB / 1.221 GB, free: 92 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.006094/1.754, allocations: 1.308 MB / 1.223 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003439/1.758, allocations: 2.089 MB / 1.225 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of SimCode: time 8.42e-07/1.758, allocations: 0 / 1.225 GB, free: 12.69 MB / 0.8419 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).