Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 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.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_8_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_8_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.00142/0.00142, 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.001585/0.001585, allocations: 192 kB / 16.53 MB, free: 6.391 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.164/1.164, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.642/1.642, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001452/0.001453, allocations: 65.02 kB / 0.6716 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2039, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.8189/1.023, allocations: 379.4 MB / 1.154 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.05982/1.083, allocations: 47.03 MB / 1.2 GB, free: 12.36 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005801/1.089, allocations: 175 kB / 1.2 GB, free: 12.19 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/FMI/Conversion/AirToOutlet.mo:96:3-98:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/FMI/Conversion/InletToAir.mo:80:3-82:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.007502/1.096, allocations: 2.808 MB / 1.203 GB, free: 9.363 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01775/1.114, allocations: 7.256 MB / 1.21 GB, free: 2.078 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.009061/1.123, allocations: 3.744 MB / 1.214 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0143/1.137, allocations: 11.46 MB / 1.225 GB, free: 2.875 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008344/1.146, allocations: 5.555 MB / 1.23 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01222/1.158, allocations: 6.341 MB / 1.236 GB, free: 6.875 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006362/1.164, allocations: 3.604 MB / 1.24 GB, free: 3.273 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.001446/1.166, allocations: 500 kB / 1.24 GB, free: 2.785 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01192/1.178, allocations: 6.154 MB / 1.246 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.002477/1.18, allocations: 1.722 MB / 1.248 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.004977/1.185, allocations: 2.768 MB / 1.251 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.01487/1.2, allocations: 9.158 MB / 1.26 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/1.2, allocations: 4 kB / 1.26 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.653e-06/1.2, allocations: 0 / 1.26 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002142/1.2, allocations: 0 / 1.26 GB, free: 14.92 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 856 * Number of variables: 856 Notification: Performance of Generate backend data structure: time 0.0104/1.211, allocations: 5.634 MB / 1.265 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/1.211, allocations: 8.031 kB / 1.265 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005584/1.211, allocations: 471.9 kB / 1.266 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/1.222, allocations: 1.797 MB / 1.267 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007449/1.23, allocations: 3.566 MB / 1.271 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001505/1.231, allocations: 0.5992 MB / 1.272 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008475/1.232, allocations: 343.9 kB / 1.272 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3097/1.542, allocations: 4.483 MB / 1.276 GB, free: 381 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.211e-05/1.542, allocations: 2 kB / 1.276 GB, free: 381 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/1.542, allocations: 142.7 kB / 1.276 GB, free: 381 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/1.543, allocations: 136.5 kB / 1.277 GB, free: 381 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008822/1.551, allocations: 3.939 MB / 1.28 GB, free: 380.1 MB / 0.9825 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.02424/1.576, allocations: 18.99 MB / 1.299 GB, free: 367.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00385/1.579, allocations: 1.768 MB / 1.301 GB, free: 367 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/1.582, allocations: 0.9125 MB / 1.302 GB, free: 366.7 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006149/1.582, allocations: 419.2 kB / 1.302 GB, free: 366.3 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002543/1.585, allocations: 1.073 MB / 1.303 GB, free: 366 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=129): time 2.845e-06/1.585, allocations: 2.031 kB / 1.303 GB, free: 366 MB / 0.9825 GB Notification: Performance of matching and sorting (n=129): time 0.00821/1.593, allocations: 2.842 MB / 1.306 GB, free: 365 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/1.593, allocations: 147.6 kB / 1.306 GB, free: 364.8 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004915/1.598, allocations: 3.488 MB / 1.309 GB, free: 363.3 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0003021/1.599, allocations: 60.77 kB / 1.309 GB, free: 363.2 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001364/1.6, allocations: 2.131 MB / 1.311 GB, free: 361.4 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003863/1.6, allocations: 459.2 kB / 1.312 GB, free: 361 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006664/1.601, allocations: 490.5 kB / 1.312 GB, free: 360.7 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 3.467e-05/1.601, allocations: 309.1 kB / 1.313 GB, free: 360.4 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/1.604, allocations: 1.047 MB / 1.314 GB, free: 359.9 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003056/1.607, allocations: 2.112 MB / 1.316 GB, free: 358 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005086/1.612, allocations: 3.072 MB / 1.319 GB, free: 355.7 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-05/1.612, allocations: 8.688 kB / 1.319 GB, free: 355.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007131/1.619, allocations: 3.383 MB / 1.322 GB, free: 354.1 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/1.619, allocations: 49.5 kB / 1.322 GB, free: 354.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/1.619, allocations: 31.72 kB / 1.322 GB, free: 354.1 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.445e-05/1.619, allocations: 47.5 kB / 1.322 GB, free: 354.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/1.622, allocations: 0.6277 MB / 1.323 GB, free: 353.9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-05/1.622, allocations: 63.2 kB / 1.323 GB, free: 353.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003604/1.625, allocations: 0.496 MB / 1.323 GB, free: 353.6 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/1.626, allocations: 126.7 kB / 1.323 GB, free: 353.6 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003743/1.629, allocations: 1.957 MB / 1.325 GB, free: 352.5 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002729/1.632, allocations: 2.085 MB / 1.327 GB, free: 350.6 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004575/1.637, allocations: 3.002 MB / 1.33 GB, free: 348.3 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.186e-05/1.637, allocations: 10 kB / 1.33 GB, free: 348.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=291) (initialization_lambda0): time 0.00685/1.643, allocations: 3.321 MB / 1.334 GB, free: 346.7 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/1.644, allocations: 45.33 kB / 1.334 GB, free: 346.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-05/1.644, allocations: 38.09 kB / 1.334 GB, free: 346.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.96e-05/1.644, allocations: 44.38 kB / 1.334 GB, free: 346.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002377/1.646, allocations: 0.6233 MB / 1.334 GB, free: 346.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-05/1.646, allocations: 68.12 kB / 1.334 GB, free: 346.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003446/1.649, allocations: 420.2 kB / 1.335 GB, free: 346.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/1.65, allocations: 128.4 kB / 1.335 GB, free: 346.2 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * 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 (287): * Single equations (assignments): 283 * Array equations: 3 * 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.0005061/1.65, allocations: 353.4 kB / 1.335 GB, free: 345.9 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/1.651, allocations: 361 kB / 1.336 GB, free: 345.8 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004879/1.655, allocations: 2.29 MB / 1.338 GB, free: 344 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.656, allocations: 19.98 kB / 1.338 GB, free: 343.9 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/1.656, allocations: 4 kB / 1.338 GB, free: 343.9 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003593/1.659, allocations: 1.913 MB / 1.34 GB, free: 341.9 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009734/1.669, allocations: 6.132 MB / 1.346 GB, free: 335.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/1.669, allocations: 8 kB / 1.346 GB, free: 335.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/1.67, allocations: 319.6 kB / 1.346 GB, free: 335.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/1.671, allocations: 56.83 kB / 1.346 GB, free: 335.2 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-05/1.671, allocations: 43.97 kB / 1.346 GB, free: 335.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000842/1.672, allocations: 1.539 MB / 1.348 GB, free: 333.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/1.672, allocations: 19.78 kB / 1.348 GB, free: 333.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006302/1.678, allocations: 3.347 MB / 1.351 GB, free: 330 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/1.679, allocations: 0.6172 MB / 1.351 GB, free: 329.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004593/1.68, allocations: 41.36 kB / 1.352 GB, free: 329.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002259/1.682, allocations: 175.9 kB / 1.352 GB, free: 329.2 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/1.682, allocations: 116.6 kB / 1.352 GB, free: 329 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/1.682, allocations: 60.62 kB / 1.352 GB, free: 329 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002906/1.685, allocations: 2.367 MB / 1.354 GB, free: 326.6 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.81e-07/1.685, allocations: 0 / 1.354 GB, free: 326.6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.004096/1.689, allocations: 1.992 MB / 1.356 GB, free: 324.6 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (127): * Single equations (assignments): 124 * 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.006916/1.696, allocations: 4.291 MB / 1.36 GB, free: 320.2 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008762/1.705, allocations: 4.081 MB / 1.364 GB, free: 316.2 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/1.705, allocations: 4 kB / 1.364 GB, free: 316.2 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002239/1.707, allocations: 1.05 MB / 1.365 GB, free: 315.1 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00703/1.714, allocations: 1.744 MB / 1.367 GB, free: 313.5 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04102/1.755, allocations: 32.54 MB / 1.399 GB, free: 277.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/1.757, allocations: 2.656 MB / 1.401 GB, free: 275 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00437/1.761, allocations: 1.064 MB / 1.402 GB, free: 274 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001721/1.763, allocations: 1.725 MB / 1.404 GB, free: 272.2 MB / 0.9825 GB Notification: Performance of SimCode: time 7.61e-07/1.763, allocations: 0 / 1.404 GB, free: 272.2 MB / 0.9825 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).