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.001075/0.001075, 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.001051/0.001051, allocations: 193.7 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.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 291 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9292/0.9292, allocations: 169.2 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 99.62 kB / 0.5953 GB, free: 27.78 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1278, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5912/0.7191, allocations: 380.1 MB / 1.051 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.3946/1.114, allocations: 46.5 MB / 1.097 GB, free: 16.18 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005378/1.119, allocations: 175 kB / 1.097 GB, free: 16.18 MB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/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.01439/1.134, allocations: 8.592 MB / 1.105 GB, free: 16.09 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01528/1.149, allocations: 7.327 MB / 1.113 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.008052/1.157, allocations: 3.836 MB / 1.116 GB, free: 15.74 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01775/1.175, allocations: 17.11 MB / 1.133 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007096/1.182, allocations: 5.585 MB / 1.139 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01057/1.192, allocations: 6.283 MB / 1.145 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006025/1.198, allocations: 3.71 MB / 1.148 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001275/1.2, allocations: 0.4908 MB / 1.149 GB, free: 14.05 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01133/1.211, allocations: 6.322 MB / 1.155 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002105/1.213, allocations: 1.991 MB / 1.157 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003706/1.217, allocations: 3.133 MB / 1.16 GB, free: 11.94 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01007/1.227, allocations: 10.18 MB / 1.17 GB, free: 4.422 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/1.227, allocations: 6.531 kB / 1.17 GB, free: 4.418 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.031e-06/1.227, allocations: 0 / 1.17 GB, free: 4.418 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.337e-05/1.227, allocations: 4 kB / 1.17 GB, free: 4.414 MB / 0.7637 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.008473/1.236, allocations: 6.442 MB / 1.176 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/1.236, allocations: 8.031 kB / 1.176 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005328/1.236, allocations: 478.8 kB / 1.177 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/1.247, allocations: 2.011 MB / 1.179 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008603/1.256, allocations: 5.603 MB / 1.184 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001458/1.258, allocations: 0.5989 MB / 1.185 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004639/1.258, allocations: 346.2 kB / 1.185 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007878/1.266, allocations: 4.538 MB / 1.189 GB, free: 360 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.376e-05/1.266, allocations: 3.094 kB / 1.189 GB, free: 360 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003245/1.266, allocations: 142.2 kB / 1.19 GB, free: 220 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/1.266, allocations: 140.5 kB / 1.19 GB, free: 80 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008767/1.275, allocations: 4.002 MB / 1.194 GB, free: 12.09 MB / 0.795 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.02566/1.301, allocations: 19.75 MB / 1.213 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004133/1.305, allocations: 1.765 MB / 1.215 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/1.307, allocations: 0.9168 MB / 1.216 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006272/1.308, allocations: 407.2 kB / 1.216 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/1.31, allocations: 1.064 MB / 1.217 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=127): time 3.106e-06/1.31, allocations: 4 kB / 1.217 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=127): time 0.00791/1.318, allocations: 2.935 MB / 1.22 GB, free: 132 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/1.318, allocations: 141.5 kB / 1.22 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006559/1.325, allocations: 4.657 MB / 1.224 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/1.325, allocations: 57.7 kB / 1.225 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001846/1.327, allocations: 2.429 MB / 1.227 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003866/1.327, allocations: 468.6 kB / 1.227 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009384/1.328, allocations: 0.6858 MB / 1.228 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.042e-05/1.328, allocations: 301.1 kB / 1.228 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003186/1.332, allocations: 1.405 MB / 1.23 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003924/1.335, allocations: 2.552 MB / 1.232 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006311/1.342, allocations: 3.739 MB / 1.236 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-05/1.342, allocations: 13.88 kB / 1.236 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.0087/1.351, allocations: 4.327 MB / 1.24 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/1.351, allocations: 49.7 kB / 1.24 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.204e-05/1.351, allocations: 32 kB / 1.24 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.226e-05/1.351, allocations: 52 kB / 1.24 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002911/1.354, allocations: 0.7366 MB / 1.241 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.023e-05/1.354, allocations: 70.69 kB / 1.241 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/1.358, allocations: 0.5722 MB / 1.242 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/1.358, allocations: 140 kB / 1.242 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004813/1.363, allocations: 2.562 MB / 1.244 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004018/1.367, allocations: 2.549 MB / 1.247 GB, free: 3.523 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006316/1.373, allocations: 3.728 MB / 1.25 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.007e-05/1.373, allocations: 12 kB / 1.25 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.008583/1.382, allocations: 4.33 MB / 1.255 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/1.382, allocations: 49.64 kB / 1.255 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-05/1.382, allocations: 32.88 kB / 1.255 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.127e-05/1.382, allocations: 48 kB / 1.255 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/1.385, allocations: 0.7355 MB / 1.255 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.1e-05/1.385, allocations: 75.72 kB / 1.255 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/1.388, allocations: 490.3 kB / 1.256 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/1.389, allocations: 144 kB / 1.256 GB, free: 9.828 MB / 0.8575 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.0004846/1.389, allocations: 372.2 kB / 1.256 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006789/1.39, allocations: 438.3 kB / 1.257 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005406/1.395, allocations: 2.33 MB / 1.259 GB, free: 6.734 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.395, allocations: 12 kB / 1.259 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.395, allocations: 0 / 1.259 GB, free: 6.723 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004261/1.4, allocations: 1.924 MB / 1.261 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/1.411, allocations: 6.7 MB / 1.268 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.411, allocations: 8 kB / 1.268 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/1.413, allocations: 333.5 kB / 1.268 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002055/1.413, allocations: 64.83 kB / 1.268 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.976e-05/1.413, allocations: 39.98 kB / 1.268 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/1.414, allocations: 1.548 MB / 1.269 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/1.414, allocations: 15.09 kB / 1.27 GB, free: 11.8 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006983/1.421, allocations: 3.395 MB / 1.273 GB, free: 8.297 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/1.423, allocations: 0.7256 MB / 1.274 GB, free: 7.547 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005541/1.423, allocations: 39.98 kB / 1.274 GB, free: 7.508 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002508/1.426, allocations: 203.8 kB / 1.274 GB, free: 7.309 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/1.426, allocations: 117.8 kB / 1.274 GB, free: 7.203 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.426, allocations: 67.97 kB / 1.274 GB, free: 7.137 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.004389/1.43, allocations: 3.119 MB / 1.277 GB, free: 4.035 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.1e-07/1.431, allocations: 0 / 1.277 GB, free: 4.035 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.004768/1.435, allocations: 2.301 MB / 1.279 GB, free: 1.73 MB / 0.8731 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.008465/1.444, allocations: 4.477 MB / 1.284 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.454, allocations: 5.107 MB / 1.289 GB, free: 8.293 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.454, allocations: 1.312 kB / 1.289 GB, free: 8.293 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002493/1.457, allocations: 1.064 MB / 1.29 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00797/1.465, allocations: 2.144 MB / 1.292 GB, free: 5.172 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05598/1.521, allocations: 40.63 MB / 1.331 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002795/1.524, allocations: 3.019 MB / 1.334 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00516/1.529, allocations: 1.308 MB / 1.336 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002643/1.531, allocations: 2.096 MB / 1.338 GB, free: 2.68 MB / 0.9356 GB Notification: Performance of SimCode: time 4.3e-07/1.531, allocations: 0 / 1.338 GB, free: 2.68 MB / 0.9356 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).