Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/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.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_10_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_10_Buildings_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.001714/0.001714, 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.00116/0.00116, allocations: 195.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.316/1.316, 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.521/2.521, allocations: 437.1 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 71.88 kB / 0.8693 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5117/0.513, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7765/1.29, allocations: 380.1 MB / 1.389 GB, free: 15.93 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.04881/1.338, allocations: 46.51 MB / 1.434 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00537/1.344, allocations: 176.2 kB / 1.434 GB, free: 13.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0139/1.358, allocations: 8.585 MB / 1.443 GB, free: 9.383 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01587/1.374, allocations: 7.327 MB / 1.45 GB, free: 3.371 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.007839/1.382, allocations: 3.835 MB / 1.454 GB, free: 15.55 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01888/1.4, allocations: 17.1 MB / 1.47 GB, free: 14.43 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006395/1.407, allocations: 5.586 MB / 1.476 GB, free: 8.758 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/1.418, allocations: 6.275 MB / 1.482 GB, free: 2.461 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006324/1.424, allocations: 3.702 MB / 1.485 GB, free: 14.76 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.001108/1.425, allocations: 0.4961 MB / 1.486 GB, free: 14.27 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01146/1.437, allocations: 6.326 MB / 1.492 GB, free: 7.93 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.001792/1.438, allocations: 1.986 MB / 1.494 GB, free: 5.938 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.003329/1.442, allocations: 3.13 MB / 1.497 GB, free: 2.793 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.01198/1.454, allocations: 10.17 MB / 1.507 GB, free: 8.598 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/1.454, allocations: 0 / 1.507 GB, free: 8.598 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.323e-06/1.454, allocations: 4 kB / 1.507 GB, free: 8.594 MB / 1.092 GB Notification: Performance of Transformations before backend: time 9.245e-05/1.454, allocations: 0 / 1.507 GB, free: 8.594 MB / 1.092 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.01002/1.464, allocations: 6.438 MB / 1.513 GB, free: 2.043 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/1.464, allocations: 12.03 kB / 1.513 GB, free: 2.031 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005433/1.465, allocations: 476.1 kB / 1.514 GB, free: 1.555 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/1.476, allocations: 2.01 MB / 1.516 GB, free: 15.54 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009181/1.485, allocations: 5.616 MB / 1.521 GB, free: 9.84 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001527/1.487, allocations: 0.5987 MB / 1.522 GB, free: 9.215 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004893/1.488, allocations: 348 kB / 1.522 GB, free: 8.875 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008211/1.496, allocations: 4.529 MB / 1.527 GB, free: 4.23 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-05/1.496, allocations: 4 kB / 1.527 GB, free: 4.227 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003384/1.496, allocations: 144 kB / 1.527 GB, free: 4.086 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/1.496, allocations: 138.5 kB / 1.527 GB, free: 3.949 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008971/1.505, allocations: 3.991 MB / 1.531 GB, free: 15.95 MB / 1.123 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.02596/1.531, allocations: 19.77 MB / 1.55 GB, free: 10.76 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004179/1.535, allocations: 1.765 MB / 1.552 GB, free: 8.953 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002206/1.538, allocations: 0.9168 MB / 1.553 GB, free: 8.035 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006411/1.538, allocations: 409.3 kB / 1.553 GB, free: 7.559 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002485/1.541, allocations: 1.069 MB / 1.554 GB, free: 6.465 MB / 1.139 GB Notification: Performance of pre-optimization done (n=127): time 3.036e-06/1.541, allocations: 0 / 1.554 GB, free: 6.465 MB / 1.139 GB Notification: Performance of matching and sorting (n=127): time 0.008195/1.549, allocations: 2.929 MB / 1.557 GB, free: 3.5 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/1.549, allocations: 145.5 kB / 1.557 GB, free: 3.328 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005841/1.555, allocations: 4.658 MB / 1.562 GB, free: 14.68 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001628/1.555, allocations: 53.7 kB / 1.562 GB, free: 14.62 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.001832/1.557, allocations: 2.433 MB / 1.564 GB, free: 12.17 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.000391/1.557, allocations: 473.5 kB / 1.564 GB, free: 11.7 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009091/1.558, allocations: 0.678 MB / 1.565 GB, free: 11.01 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 8.087e-05/1.558, allocations: 305.1 kB / 1.565 GB, free: 10.71 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003262/1.562, allocations: 1.409 MB / 1.567 GB, free: 9.293 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003994/1.566, allocations: 2.541 MB / 1.569 GB, free: 6.246 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00642/1.572, allocations: 3.746 MB / 1.573 GB, free: 2.031 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/1.572, allocations: 8 kB / 1.573 GB, free: 2.023 MB / 1.154 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.00914/1.581, allocations: 4.318 MB / 1.577 GB, free: 13.69 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/1.581, allocations: 54.47 kB / 1.577 GB, free: 13.63 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.706e-05/1.581, allocations: 36 kB / 1.577 GB, free: 13.6 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.179e-05/1.581, allocations: 48 kB / 1.577 GB, free: 13.55 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003027/1.584, allocations: 0.7337 MB / 1.578 GB, free: 12.82 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.397e-05/1.585, allocations: 71.72 kB / 1.578 GB, free: 12.75 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003993/1.589, allocations: 0.5639 MB / 1.579 GB, free: 12.18 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000224/1.589, allocations: 152 kB / 1.579 GB, free: 12.03 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004955/1.594, allocations: 2.559 MB / 1.581 GB, free: 9.465 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003916/1.598, allocations: 2.552 MB / 1.584 GB, free: 6.406 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006316/1.604, allocations: 3.734 MB / 1.587 GB, free: 2.199 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.524e-05/1.604, allocations: 11.94 kB / 1.587 GB, free: 2.188 MB / 1.17 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.00894/1.613, allocations: 4.329 MB / 1.592 GB, free: 13.84 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/1.613, allocations: 45.7 kB / 1.592 GB, free: 13.79 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/1.613, allocations: 32 kB / 1.592 GB, free: 13.76 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.657e-05/1.613, allocations: 52.72 kB / 1.592 GB, free: 13.71 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/1.616, allocations: 0.741 MB / 1.593 GB, free: 12.96 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.733e-05/1.616, allocations: 71.72 kB / 1.593 GB, free: 12.89 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/1.62, allocations: 488 kB / 1.593 GB, free: 12.42 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/1.62, allocations: 144 kB / 1.593 GB, free: 12.28 MB / 1.186 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.0005442/1.621, allocations: 377 kB / 1.594 GB, free: 11.9 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006074/1.621, allocations: 430.5 kB / 1.594 GB, free: 11.48 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005806/1.627, allocations: 2.323 MB / 1.596 GB, free: 9.129 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/1.627, allocations: 12 kB / 1.596 GB, free: 9.117 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/1.627, allocations: 4 kB / 1.596 GB, free: 9.113 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004456/1.632, allocations: 1.929 MB / 1.598 GB, free: 7.094 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/1.644, allocations: 6.695 MB / 1.605 GB, free: 152 kB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/1.644, allocations: 15.94 kB / 1.605 GB, free: 136 kB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/1.646, allocations: 328.2 kB / 1.605 GB, free: 15.81 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/1.646, allocations: 60.81 kB / 1.605 GB, free: 15.75 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/1.646, allocations: 39.98 kB / 1.605 GB, free: 15.71 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/1.648, allocations: 1.551 MB / 1.607 GB, free: 14.02 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.198e-06/1.648, allocations: 11.94 kB / 1.607 GB, free: 14.01 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00735/1.655, allocations: 3.399 MB / 1.61 GB, free: 10.45 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.656, allocations: 0.7216 MB / 1.611 GB, free: 9.703 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005048/1.657, allocations: 43.98 kB / 1.611 GB, free: 9.66 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/1.659, allocations: 203.8 kB / 1.611 GB, free: 9.461 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/1.66, allocations: 116.2 kB / 1.611 GB, free: 9.344 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/1.66, allocations: 67.95 kB / 1.611 GB, free: 9.277 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.004427/1.664, allocations: 3.123 MB / 1.614 GB, free: 6.172 MB / 1.201 GB Notification: Performance of sort global known variables: time 2.7e-07/1.664, allocations: 4 kB / 1.614 GB, free: 6.168 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.005083/1.669, allocations: 2.298 MB / 1.616 GB, free: 3.863 MB / 1.201 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.008695/1.678, allocations: 4.463 MB / 1.621 GB, free: 15.24 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.01108/1.689, allocations: 5.115 MB / 1.626 GB, free: 10.11 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.689, allocations: 0 / 1.626 GB, free: 10.11 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.002655/1.692, allocations: 1.059 MB / 1.627 GB, free: 9.043 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008742/1.701, allocations: 2.144 MB / 1.629 GB, free: 6.957 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05984/1.76, allocations: 40.63 MB / 1.669 GB, free: 10.65 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002968/1.763, allocations: 3.019 MB / 1.671 GB, free: 7.598 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.005493/1.769, allocations: 1.308 MB / 1.673 GB, free: 6.285 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002676/1.772, allocations: 2.089 MB / 1.675 GB, free: 4.195 MB / 1.264 GB Notification: Performance of SimCode: time 7.11e-07/1.772, allocations: 0 / 1.675 GB, free: 4.195 MB / 1.264 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).