Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ThermalZoneHVACNoExhaust,fileNamePrefix="Buildings_8_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="Buildings_8_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",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.0009272/0.0009272, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005056/0.005056, allocations: 171 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.188/1.188, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.548/1.548, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004447, allocations: 14.97 kB / 0.6744 GB, free: 25.62 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1702, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.6072/0.7774, allocations: 335.8 MB / 1.116 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.04366/0.8211, allocations: 39.16 MB / 1.154 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003961/0.8251, allocations: 115.2 kB / 1.154 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004549/0.8296, allocations: 1.986 MB / 1.156 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01196/0.8416, allocations: 5.374 MB / 1.162 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.005826/0.8474, allocations: 2.753 MB / 1.164 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01093/0.8584, allocations: 11.35 MB / 1.175 GB, free: 14.92 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004535/0.8629, allocations: 3.44 MB / 1.179 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00793/0.8709, allocations: 4.19 MB / 1.183 GB, free: 7.199 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004599/0.8755, allocations: 2.527 MB / 1.185 GB, free: 4.672 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004819/0.876, allocations: 124 kB / 1.185 GB, free: 4.551 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00889/0.8849, allocations: 5.716 MB / 1.191 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.8859, allocations: 0.973 MB / 1.192 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.8878, allocations: 1.762 MB / 1.194 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.007495/0.8953, allocations: 7.052 MB / 1.2 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8953, allocations: 0 / 1.2 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8953, allocations: 0 / 1.2 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.989e-05/0.8954, allocations: 0 / 1.2 GB, free: 4.992 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 645 * Number of variables: 645 Notification: Performance of Generate backend data structure: time 0.005985/0.9014, allocations: 3.659 MB / 1.204 GB, free: 1.25 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.9014, allocations: 8.031 kB / 1.204 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004478/0.9019, allocations: 362.3 kB / 1.204 GB, free: 0.8789 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00751/0.9094, allocations: 1.467 MB / 1.206 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004729/0.9141, allocations: 2.727 MB / 1.208 GB, free: 12.61 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/0.9152, allocations: 485.9 kB / 1.209 GB, free: 12.11 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/0.9156, allocations: 256 kB / 1.209 GB, free: 11.86 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005906/0.9215, allocations: 3.409 MB / 1.213 GB, free: 8.348 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.506e-05/0.9216, allocations: 0 / 1.213 GB, free: 8.348 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002493/0.9218, allocations: 104 kB / 1.213 GB, free: 8.246 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.435e-05/0.9219, allocations: 104.9 kB / 1.213 GB, free: 8.141 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006323/0.9283, allocations: 3.072 MB / 1.216 GB, free: 5.055 MB / 0.92 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.01916/0.9474, allocations: 14.11 MB / 1.229 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003181/0.9506, allocations: 1.604 MB / 1.231 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.9521, allocations: 0.7031 MB / 1.232 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003637/0.9524, allocations: 300.3 kB / 1.232 GB, free: 3.172 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001671/0.9541, allocations: 0.8372 MB / 1.233 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000836/0.955, allocations: 110.7 kB / 1.233 GB, free: 2.207 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=106): time 2.735e-06/0.955, allocations: 0 / 1.233 GB, free: 2.207 MB / 0.9356 GB Notification: Performance of matching and sorting (n=106): time 0.005089/0.9601, allocations: 2.182 MB / 1.235 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.9602, allocations: 115.8 kB / 1.235 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003259/0.9634, allocations: 2.508 MB / 1.238 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.9635, allocations: 49.7 kB / 1.238 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00119/0.9647, allocations: 1.592 MB / 1.239 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.965, allocations: 378.6 kB / 1.24 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/0.9652, allocations: 149.6 kB / 1.24 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.575e-05/0.9653, allocations: 301.1 kB / 1.24 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.9673, allocations: 0.7885 MB / 1.241 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002496/0.9698, allocations: 1.546 MB / 1.242 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003921/0.9737, allocations: 2.212 MB / 1.244 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.9738, allocations: 8 kB / 1.244 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005332/0.9791, allocations: 2.519 MB / 1.247 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004511/0.9796, allocations: 0.7448 MB / 1.248 GB, free: 2.074 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.9796, allocations: 20 kB / 1.248 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.748e-05/0.9796, allocations: 31.94 kB / 1.248 GB, free: 2.023 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.9815, allocations: 491.2 kB / 1.248 GB, free: 1.543 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.666e-05/0.9816, allocations: 47.84 kB / 1.248 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00306/0.9847, allocations: 445.5 kB / 1.249 GB, free: 1.062 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.9848, allocations: 95.97 kB / 1.249 GB, free: 0.9688 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.284e-06/0.9848, allocations: 4 kB / 1.249 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004654/0.9895, allocations: 2.239 MB / 1.251 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.9895, allocations: 20 kB / 1.251 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.9896, allocations: 32 kB / 1.251 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.9914, allocations: 479.6 kB / 1.251 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.535e-05/0.9914, allocations: 47.8 kB / 1.251 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/0.9939, allocations: 376.6 kB / 1.252 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.9941, allocations: 95.97 kB / 1.252 GB, free: 13.69 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * 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 (218): * Single equations (assignments): 215 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * 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.001364/0.9955, allocations: 0.891 MB / 1.253 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/0.9958, allocations: 264.6 kB / 1.253 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/0.9994, allocations: 1.671 MB / 1.255 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.9994, allocations: 15.94 kB / 1.255 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9994, allocations: 0 / 1.255 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002792/1.002, allocations: 1.325 MB / 1.256 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007324/1.01, allocations: 4.462 MB / 1.26 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/1.01, allocations: 8 kB / 1.26 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/1.011, allocations: 243.8 kB / 1.261 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/1.011, allocations: 48.83 kB / 1.261 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.842e-05/1.011, allocations: 39.92 kB / 1.261 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/1.012, allocations: 1.433 MB / 1.262 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/1.012, allocations: 11.94 kB / 1.262 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004761/1.017, allocations: 2.569 MB / 1.265 GB, free: 240 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/1.018, allocations: 485.7 kB / 1.265 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/1.018, allocations: 31.98 kB / 1.265 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/1.02, allocations: 243.6 kB / 1.265 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/1.02, allocations: 96.31 kB / 1.265 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.255e-05/1.02, allocations: 47.97 kB / 1.265 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002419/1.023, allocations: 1.695 MB / 1.267 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/1.023, allocations: 4 kB / 1.267 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003713/1.026, allocations: 1.569 MB / 1.269 GB, free: 12.05 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 4 (conPI.I.y,vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1]) * 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 (105): * Single equations (assignments): 102 * 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.005809/1.032, allocations: 3.473 MB / 1.272 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.006293/1.038, allocations: 2.971 MB / 1.275 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.038, allocations: 4 kB / 1.275 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001705/1.04, allocations: 0.8239 MB / 1.276 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00719/1.047, allocations: 1.195 MB / 1.277 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3346/1.382, allocations: 23.8 MB / 1.3 GB, free: 367.6 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/1.384, allocations: 2.123 MB / 1.302 GB, free: 366.7 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003487/1.387, allocations: 0.7683 MB / 1.303 GB, free: 366.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/1.389, allocations: 1.264 MB / 1.304 GB, free: 365.7 MB / 0.9825 GB Notification: Performance of SimCode: time 4e-07/1.389, allocations: 1.094 kB / 1.304 GB, free: 365.7 MB / 0.9825 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).