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.001462/0.001462, allocations: 108 kB / 15.61 MB, free: 152 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.001733/0.001733, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.266/1.266, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.532/1.532, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001555/0.001555, allocations: 66.28 kB / 0.6716 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1746, allocations: 114.5 MB / 0.7835 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.5854/0.76, allocations: 342.5 MB / 1.118 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.04061/0.8007, allocations: 39.03 MB / 1.156 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00344/0.8042, allocations: 135.2 kB / 1.156 GB, free: 9.309 MB / 0.8731 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.004647/0.8088, allocations: 2.342 MB / 1.159 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.8197, allocations: 5.74 MB / 1.164 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.005624/0.8253, allocations: 3.034 MB / 1.167 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007928/0.8332, allocations: 8.514 MB / 1.175 GB, free: 5.641 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004266/0.8375, allocations: 4.176 MB / 1.179 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00753/0.8451, allocations: 4.928 MB / 1.184 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003379/0.8484, allocations: 2.696 MB / 1.187 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004644/0.8489, allocations: 372 kB / 1.187 GB, free: 9.387 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007832/0.8568, allocations: 5.118 MB / 1.192 GB, free: 4.258 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.8578, allocations: 1.258 MB / 1.193 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001835/0.8596, allocations: 2.08 MB / 1.196 GB, free: 0.9062 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.007429/0.8671, allocations: 7.02 MB / 1.202 GB, free: 9.867 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.8671, allocations: 0 / 1.202 GB, free: 9.867 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8671, allocations: 0 / 1.202 GB, free: 9.867 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.492e-05/0.8671, allocations: 4 kB / 1.202 GB, free: 9.863 MB / 0.92 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.006265/0.8734, allocations: 4.371 MB / 1.207 GB, free: 5.406 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.8734, allocations: 12.03 kB / 1.207 GB, free: 5.395 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00036/0.8738, allocations: 358.4 kB / 1.207 GB, free: 5.035 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007088/0.8809, allocations: 1.373 MB / 1.208 GB, free: 3.656 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004287/0.8852, allocations: 2.715 MB / 1.211 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009818/0.8862, allocations: 457.9 kB / 1.211 GB, free: 408 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003143/0.8865, allocations: 272 kB / 1.212 GB, free: 136 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005291/0.8918, allocations: 3.356 MB / 1.215 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/0.8919, allocations: 4 kB / 1.215 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/0.8921, allocations: 111.9 kB / 1.215 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.303e-05/0.8922, allocations: 100.9 kB / 1.215 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005821/0.898, allocations: 2.97 MB / 1.218 GB, free: 9.469 MB / 0.9356 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.01684/0.9149, allocations: 14.38 MB / 1.232 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00303/0.9179, allocations: 1.579 MB / 1.234 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.9193, allocations: 0.6952 MB / 1.234 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003381/0.9196, allocations: 300.3 kB / 1.235 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.9212, allocations: 0.8177 MB / 1.235 GB, free: 6.488 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=104): time 2.414e-06/0.9212, allocations: 0 / 1.235 GB, free: 6.488 MB / 0.9512 GB Notification: Performance of matching and sorting (n=104): time 0.004971/0.9262, allocations: 2.139 MB / 1.238 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.9262, allocations: 115.8 kB / 1.238 GB, free: 4.184 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003062/0.9293, allocations: 2.629 MB / 1.24 GB, free: 1.543 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-05/0.9294, allocations: 49.7 kB / 1.24 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.9304, allocations: 1.585 MB / 1.242 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.9307, allocations: 374.7 kB / 1.242 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004792/0.9312, allocations: 371.1 kB / 1.243 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 7.076e-05/0.9313, allocations: 305.1 kB / 1.243 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001837/0.9331, allocations: 0.7816 MB / 1.244 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/0.9354, allocations: 1.536 MB / 1.245 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003573/0.939, allocations: 2.204 MB / 1.247 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.939, allocations: 4 kB / 1.247 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004864/0.9439, allocations: 2.507 MB / 1.25 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.9439, allocations: 37.7 kB / 1.25 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/0.9439, allocations: 24 kB / 1.25 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.247e-05/0.944, allocations: 32 kB / 1.25 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.9458, allocations: 475.6 kB / 1.25 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.779e-05/0.9459, allocations: 51.78 kB / 1.25 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002462/0.9483, allocations: 396.7 kB / 1.251 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.9485, allocations: 95.97 kB / 1.251 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002855/0.9514, allocations: 1.456 MB / 1.252 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002268/0.9536, allocations: 1.516 MB / 1.254 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003508/0.9571, allocations: 2.176 MB / 1.256 GB, free: 264 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.308e-06/0.9572, allocations: 8 kB / 1.256 GB, free: 256 kB / 0.9669 GB Notification: Performance of matching and sorting (n=219) (initialization_lambda0): time 0.00494/0.9621, allocations: 2.483 MB / 1.258 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.9622, allocations: 49.62 kB / 1.258 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.9622, allocations: 20 kB / 1.258 GB, free: 13.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.9622, allocations: 32 kB / 1.258 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00179/0.964, allocations: 475.4 kB / 1.259 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.405e-05/0.9641, allocations: 43.8 kB / 1.259 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/0.9666, allocations: 354.4 kB / 1.259 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.9667, allocations: 95.95 kB / 1.259 GB, free: 12.7 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * 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 (216): * Single equations (assignments): 213 * 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.0003737/0.9671, allocations: 295.6 kB / 1.259 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/0.9675, allocations: 272.7 kB / 1.26 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.9711, allocations: 1.664 MB / 1.261 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.9711, allocations: 8 kB / 1.261 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.9711, allocations: 0 / 1.261 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002671/0.9738, allocations: 1.298 MB / 1.263 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007316/0.9811, allocations: 4.295 MB / 1.267 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.9811, allocations: 8 kB / 1.267 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.9823, allocations: 236.2 kB / 1.267 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.9825, allocations: 56.75 kB / 1.267 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.836e-05/0.9826, allocations: 35.98 kB / 1.267 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.9837, allocations: 1.535 MB / 1.269 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.9837, allocations: 8 kB / 1.269 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004557/0.9882, allocations: 2.528 MB / 1.271 GB, free: 12 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008085/0.9891, allocations: 0.4935 MB / 1.272 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003738/0.9894, allocations: 31.94 kB / 1.272 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/0.9912, allocations: 147.8 kB / 1.272 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.9913, allocations: 88.38 kB / 1.272 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.645e-05/0.9914, allocations: 47.97 kB / 1.272 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002629/0.9941, allocations: 1.783 MB / 1.274 GB, free: 13.41 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9941, allocations: 4 kB / 1.274 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003421/0.9975, allocations: 1.519 MB / 1.275 GB, free: 11.88 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (103): * Single equations (assignments): 100 * 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.005536/1.003, allocations: 3.414 MB / 1.278 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006592/1.01, allocations: 3.072 MB / 1.281 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.01, allocations: 4 kB / 1.281 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001627/1.011, allocations: 0.8087 MB / 1.282 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004837/1.016, allocations: 1.314 MB / 1.284 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3076/1.324, allocations: 23.12 MB / 1.306 GB, free: 385.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001796/1.326, allocations: 2.123 MB / 1.308 GB, free: 384.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003445/1.329, allocations: 0.773 MB / 1.309 GB, free: 384.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/1.33, allocations: 1.26 MB / 1.31 GB, free: 383.7 MB / 0.9981 GB Notification: Performance of SimCode: time 8.52e-07/1.33, allocations: 0 / 1.31 GB, free: 383.7 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).