Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_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.001309/0.001309, 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.001544/0.001544, allocations: 193.4 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 298.9 kB / 290.7 MB, free: 1.852 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.064/1.064, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002737/0.002737, allocations: 99.81 kB / 0.6065 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1553, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 1.041/1.196, allocations: 380.1 MB / 1.065 GB, free: 16.34 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.05189/1.248, allocations: 46.53 MB / 1.11 GB, free: 16.14 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006126/1.254, allocations: 178.9 kB / 1.11 GB, free: 16.14 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01441/1.269, allocations: 8.591 MB / 1.119 GB, free: 16.01 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01596/1.285, allocations: 7.334 MB / 1.126 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.008677/1.293, allocations: 3.834 MB / 1.13 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01913/1.312, allocations: 17.1 MB / 1.146 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006923/1.319, allocations: 5.585 MB / 1.152 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01136/1.331, allocations: 6.279 MB / 1.158 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006641/1.337, allocations: 3.712 MB / 1.162 GB, free: 11.03 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0015/1.339, allocations: 0.496 MB / 1.162 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01176/1.351, allocations: 6.327 MB / 1.168 GB, free: 5.359 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002382/1.353, allocations: 1.986 MB / 1.17 GB, free: 3.41 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005129/1.358, allocations: 3.127 MB / 1.173 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01755/1.376, allocations: 10.17 MB / 1.183 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.376, allocations: 0 / 1.183 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/1.376, allocations: 8 kB / 1.183 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002534/1.376, allocations: 0 / 1.183 GB, free: 6.59 MB / 0.7794 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.01331/1.389, allocations: 6.437 MB / 1.189 GB, free: 124 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/1.389, allocations: 12.03 kB / 1.189 GB, free: 112 kB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000696/1.39, allocations: 475.3 kB / 1.19 GB, free: 15.64 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/1.402, allocations: 2.012 MB / 1.192 GB, free: 13.62 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01104/1.413, allocations: 5.605 MB / 1.197 GB, free: 8.121 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001661/1.415, allocations: 0.5978 MB / 1.198 GB, free: 7.5 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009812/1.416, allocations: 348.2 kB / 1.198 GB, free: 7.16 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009633/1.426, allocations: 4.535 MB / 1.203 GB, free: 2.527 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.13e-05/1.426, allocations: 7.188 kB / 1.203 GB, free: 2.523 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/1.426, allocations: 142.1 kB / 1.203 GB, free: 2.387 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/1.426, allocations: 134.5 kB / 1.203 GB, free: 2.254 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009978/1.436, allocations: 3.997 MB / 1.207 GB, free: 14.27 MB / 0.8106 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.03139/1.468, allocations: 19.76 MB / 1.226 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/1.473, allocations: 1.766 MB / 1.228 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002399/1.475, allocations: 0.9167 MB / 1.229 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007182/1.476, allocations: 410.2 kB / 1.229 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002721/1.479, allocations: 1.069 MB / 1.23 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=127): time 3.477e-06/1.479, allocations: 3.938 kB / 1.23 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of matching and sorting (n=127): time 0.008935/1.487, allocations: 2.928 MB / 1.233 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.488, allocations: 141.5 kB / 1.233 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007743/1.495, allocations: 4.652 MB / 1.238 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0003182/1.496, allocations: 57.7 kB / 1.238 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.002542/1.498, allocations: 2.436 MB / 1.24 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006041/1.499, allocations: 473 kB / 1.241 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001061/1.5, allocations: 0.6781 MB / 1.241 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.5, allocations: 301.1 kB / 1.242 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003493/1.504, allocations: 1.401 MB / 1.243 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004512/1.508, allocations: 2.553 MB / 1.245 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007174/1.515, allocations: 3.733 MB / 1.249 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.497e-05/1.515, allocations: 15.94 kB / 1.249 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009859/1.525, allocations: 4.33 MB / 1.253 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.434e-05/1.525, allocations: 45.7 kB / 1.253 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.821e-05/1.525, allocations: 32 kB / 1.253 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.182e-05/1.525, allocations: 48.78 kB / 1.253 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003049/1.528, allocations: 0.7446 MB / 1.254 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.988e-05/1.529, allocations: 71.34 kB / 1.254 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/1.533, allocations: 0.5712 MB / 1.255 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/1.533, allocations: 140 kB / 1.255 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00563/1.539, allocations: 2.563 MB / 1.257 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004651/1.544, allocations: 2.55 MB / 1.26 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007278/1.551, allocations: 3.721 MB / 1.264 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.478e-05/1.551, allocations: 8 kB / 1.264 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.01031/1.561, allocations: 4.343 MB / 1.268 GB, free: 13.49 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/1.561, allocations: 49.69 kB / 1.268 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.016e-05/1.561, allocations: 40.08 kB / 1.268 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.095e-05/1.561, allocations: 48 kB / 1.268 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/1.565, allocations: 0.7274 MB / 1.269 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.116e-05/1.565, allocations: 71.91 kB / 1.269 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00449/1.569, allocations: 499.7 kB / 1.269 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002608/1.569, allocations: 140 kB / 1.269 GB, free: 11.99 MB / 0.8731 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.0006893/1.57, allocations: 371.1 kB / 1.27 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008102/1.571, allocations: 434.4 kB / 1.27 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006095/1.577, allocations: 2.322 MB / 1.272 GB, free: 8.91 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/1.577, allocations: 16 kB / 1.272 GB, free: 8.895 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/1.577, allocations: 0 / 1.272 GB, free: 8.895 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004737/1.582, allocations: 1.92 MB / 1.274 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/1.596, allocations: 6.697 MB / 1.281 GB, free: 64 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/1.596, allocations: 12 kB / 1.281 GB, free: 52 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/1.598, allocations: 335.5 kB / 1.281 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002249/1.598, allocations: 52.83 kB / 1.281 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/1.598, allocations: 43.98 kB / 1.281 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/1.6, allocations: 1.554 MB / 1.283 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.33e-05/1.6, allocations: 18.47 kB / 1.283 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008186/1.608, allocations: 3.392 MB / 1.286 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001706/1.61, allocations: 0.7295 MB / 1.287 GB, free: 9.652 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006062/1.61, allocations: 39.98 kB / 1.287 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002647/1.613, allocations: 203.8 kB / 1.287 GB, free: 9.414 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/1.613, allocations: 115.4 kB / 1.287 GB, free: 9.309 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/1.613, allocations: 59.97 kB / 1.287 GB, free: 9.25 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.005391/1.619, allocations: 3.127 MB / 1.29 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.4e-07/1.619, allocations: 0 / 1.29 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.005951/1.625, allocations: 2.287 MB / 1.293 GB, free: 3.848 MB / 0.8887 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.009501/1.634, allocations: 4.494 MB / 1.297 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01238/1.647, allocations: 5.1 MB / 1.302 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/1.647, allocations: 4.375 kB / 1.302 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002932/1.65, allocations: 1.059 MB / 1.303 GB, free: 9.352 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009826/1.659, allocations: 2.146 MB / 1.305 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07368/1.733, allocations: 40.62 MB / 1.345 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003319/1.736, allocations: 3.026 MB / 1.348 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.005912/1.742, allocations: 1.304 MB / 1.349 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003242/1.746, allocations: 2.089 MB / 1.351 GB, free: 4.746 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/1.746, allocations: 0 / 1.351 GB, free: 4.746 MB / 0.9512 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: BuildingSystems.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).