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.001409/0.001409, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001552/0.001552, allocations: 200 kB / 16.26 MB, free: 6.617 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.22/1.22, allocations: 205.1 MB / 222.1 MB, free: 4.891 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.472/1.472, allocations: 292.3 MB / 0.5486 GB, free: 13.64 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.001246/0.001246, allocations: 74.02 kB / 0.6711 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1602, allocations: 114.5 MB / 0.783 GB, free: 13.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5918/0.7521, allocations: 375.2 MB / 1.149 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.04739/0.7995, allocations: 46.76 MB / 1.195 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004331/0.8039, allocations: 155 kB / 1.195 GB, free: 12.73 MB / 0.9044 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.005115/0.8091, allocations: 2.5 MB / 1.198 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.8225, allocations: 6.812 MB / 1.204 GB, free: 3.383 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.006578/0.8291, allocations: 3.46 MB / 1.208 GB, free: 15.96 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01052/0.8396, allocations: 11.49 MB / 1.219 GB, free: 4.438 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00603/0.8456, allocations: 5.488 MB / 1.224 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009758/0.8554, allocations: 6.396 MB / 1.231 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005727/0.8612, allocations: 3.832 MB / 1.234 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.001004/0.8622, allocations: 0.4922 MB / 1.235 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009446/0.8716, allocations: 6.45 MB / 1.241 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.8735, allocations: 1.745 MB / 1.243 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.003522/0.877, allocations: 2.784 MB / 1.245 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.8878, allocations: 9.574 MB / 1.255 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.8879, allocations: 7.938 kB / 1.255 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.274e-06/0.8879, allocations: 0 / 1.255 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001849/0.8881, allocations: 3.938 kB / 1.255 GB, free: 15.5 MB / 0.9669 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.008631/0.8967, allocations: 5.654 MB / 1.26 GB, free: 9.758 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.8967, allocations: 8.031 kB / 1.26 GB, free: 9.75 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004734/0.8972, allocations: 475.9 kB / 1.261 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00908/0.9063, allocations: 1.789 MB / 1.263 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005384/0.9117, allocations: 3.573 MB / 1.266 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001223/0.9129, allocations: 0.5953 MB / 1.267 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004175/0.9134, allocations: 347.9 kB / 1.267 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006912/0.9203, allocations: 4.496 MB / 1.271 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.638e-05/0.9203, allocations: 3.938 kB / 1.271 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002865/0.9206, allocations: 147.9 kB / 1.271 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.9207, allocations: 138.5 kB / 1.272 GB, free: 14 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007254/0.928, allocations: 3.968 MB / 1.275 GB, free: 10.02 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.02108/0.9491, allocations: 18.54 MB / 1.294 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003366/0.9525, allocations: 1.802 MB / 1.295 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.9543, allocations: 0.9255 MB / 1.296 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/0.9549, allocations: 414 kB / 1.297 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00212/0.957, allocations: 1.1 MB / 1.298 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001003/0.958, allocations: 154.1 kB / 1.298 GB, free: 1.594 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=133): time 2.756e-06/0.958, allocations: 3.938 kB / 1.298 GB, free: 1.59 MB / 0.9981 GB Notification: Performance of matching and sorting (n=133): time 0.2648/1.223, allocations: 2.875 MB / 1.301 GB, free: 395.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.223, allocations: 144.2 kB / 1.301 GB, free: 394.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00523/1.228, allocations: 3.378 MB / 1.304 GB, free: 394.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002256/1.228, allocations: 61.86 kB / 1.304 GB, free: 394.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00117/1.23, allocations: 2.14 MB / 1.306 GB, free: 393.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/1.23, allocations: 476.8 kB / 1.307 GB, free: 393.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005504/1.23, allocations: 491.3 kB / 1.307 GB, free: 392.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.171e-05/1.23, allocations: 304.7 kB / 1.307 GB, free: 392.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/1.232, allocations: 1.061 MB / 1.309 GB, free: 392.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002343/1.235, allocations: 2.127 MB / 1.311 GB, free: 390.6 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003933/1.239, allocations: 3.08 MB / 1.314 GB, free: 388.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/1.239, allocations: 10.98 kB / 1.314 GB, free: 388.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006039/1.245, allocations: 3.396 MB / 1.317 GB, free: 387.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/1.245, allocations: 47.91 kB / 1.317 GB, free: 387.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.874e-05/1.245, allocations: 31.38 kB / 1.317 GB, free: 387.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.49e-05/1.245, allocations: 44.84 kB / 1.317 GB, free: 387.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/1.247, allocations: 0.6423 MB / 1.318 GB, free: 387.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.228e-05/1.247, allocations: 64.23 kB / 1.318 GB, free: 387.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003547/1.251, allocations: 0.5817 MB / 1.318 GB, free: 387.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002029/1.251, allocations: 132.3 kB / 1.318 GB, free: 387.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003831/1.255, allocations: 1.968 MB / 1.32 GB, free: 386.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002574/1.258, allocations: 2.094 MB / 1.322 GB, free: 384.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004258/1.262, allocations: 3.024 MB / 1.325 GB, free: 382.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.329e-05/1.262, allocations: 8.25 kB / 1.325 GB, free: 382.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=295) (initialization_lambda0): time 0.005865/1.268, allocations: 3.345 MB / 1.329 GB, free: 381.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/1.268, allocations: 50.25 kB / 1.329 GB, free: 381.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/1.268, allocations: 31.09 kB / 1.329 GB, free: 381.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.226e-05/1.268, allocations: 44.59 kB / 1.329 GB, free: 381.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00213/1.27, allocations: 0.633 MB / 1.329 GB, free: 381.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.496e-05/1.27, allocations: 72.58 kB / 1.329 GB, free: 381.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/1.273, allocations: 0.5143 MB / 1.33 GB, free: 381.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/1.273, allocations: 124.2 kB / 1.33 GB, free: 381.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (291): * Single equations (assignments): 287 * 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.000453/1.274, allocations: 350.8 kB / 1.33 GB, free: 381.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003366/1.274, allocations: 354.7 kB / 1.331 GB, free: 381 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/1.278, allocations: 2.319 MB / 1.333 GB, free: 380.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/1.278, allocations: 16.31 kB / 1.333 GB, free: 380.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/1.278, allocations: 1.375 kB / 1.333 GB, free: 380.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00322/1.282, allocations: 1.944 MB / 1.335 GB, free: 379.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008286/1.29, allocations: 6.2 MB / 1.341 GB, free: 376.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/1.29, allocations: 9.406 kB / 1.341 GB, free: 376.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/1.291, allocations: 323.7 kB / 1.341 GB, free: 376.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/1.291, allocations: 67.88 kB / 1.341 GB, free: 376.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.063e-05/1.292, allocations: 42.31 kB / 1.341 GB, free: 376.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007553/1.292, allocations: 1.545 MB / 1.343 GB, free: 374.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.292, allocations: 15.78 kB / 1.343 GB, free: 374.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005033/1.297, allocations: 3.401 MB / 1.346 GB, free: 373.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/1.298, allocations: 0.5836 MB / 1.347 GB, free: 372.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000349/1.298, allocations: 41.97 kB / 1.347 GB, free: 372.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002245/1.301, allocations: 314.9 kB / 1.347 GB, free: 372.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/1.301, allocations: 117.9 kB / 1.347 GB, free: 372.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/1.301, allocations: 65.16 kB / 1.347 GB, free: 372.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00234/1.303, allocations: 2.28 MB / 1.35 GB, free: 371.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.303, allocations: 0 / 1.35 GB, free: 371.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003611/1.307, allocations: 2.034 MB / 1.352 GB, free: 370.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (131): * Single equations (assignments): 128 * 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.005801/1.313, allocations: 4.338 MB / 1.356 GB, free: 367.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006798/1.32, allocations: 4.139 MB / 1.36 GB, free: 363.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/1.32, allocations: 0 / 1.36 GB, free: 363.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001688/1.321, allocations: 1.063 MB / 1.361 GB, free: 362.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004941/1.326, allocations: 1.706 MB / 1.363 GB, free: 361 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04126/1.368, allocations: 33.51 MB / 1.395 GB, free: 324.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/1.369, allocations: 2.657 MB / 1.398 GB, free: 321.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003595/1.372, allocations: 1.058 MB / 1.399 GB, free: 320.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.374, allocations: 1.737 MB / 1.401 GB, free: 318.9 MB / 0.9981 GB Notification: Performance of SimCode: time 7.21e-07/1.374, allocations: 4 kB / 1.401 GB, free: 318.9 MB / 0.9981 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).