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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 148 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.001152/0.001152, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002381/0.002381, allocations: 283.2 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9575/0.9575, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 95.44 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1278, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.5919/0.7197, allocations: 380.1 MB / 1.051 GB, free: 10.69 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.4103/1.13, allocations: 46.51 MB / 1.097 GB, free: 16.15 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005826/1.136, allocations: 176.8 kB / 1.097 GB, free: 16.15 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.01491/1.151, allocations: 8.588 MB / 1.105 GB, free: 16.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01669/1.168, allocations: 7.334 MB / 1.113 GB, free: 15.8 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.009062/1.177, allocations: 3.836 MB / 1.116 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01948/1.196, allocations: 17.1 MB / 1.133 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006756/1.203, allocations: 5.586 MB / 1.139 GB, free: 14.84 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01167/1.215, allocations: 6.282 MB / 1.145 GB, free: 14.67 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00673/1.221, allocations: 3.706 MB / 1.148 GB, free: 14.03 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001163/1.223, allocations: 0.4925 MB / 1.149 GB, free: 14.03 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01275/1.235, allocations: 6.326 MB / 1.155 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002232/1.238, allocations: 1.987 MB / 1.157 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003998/1.242, allocations: 3.129 MB / 1.16 GB, free: 11.91 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01268/1.254, allocations: 10.19 MB / 1.17 GB, free: 4.438 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/1.254, allocations: 0 / 1.17 GB, free: 4.438 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.383e-06/1.254, allocations: 3.938 kB / 1.17 GB, free: 4.434 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001041/1.254, allocations: 4 kB / 1.17 GB, free: 4.43 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.00992/1.264, allocations: 6.437 MB / 1.176 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/1.264, allocations: 15.97 kB / 1.176 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005657/1.265, allocations: 474.1 kB / 1.177 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/1.277, allocations: 2.015 MB / 1.179 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009725/1.286, allocations: 5.606 MB / 1.184 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001488/1.288, allocations: 0.597 MB / 1.185 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006273/1.288, allocations: 350.2 kB / 1.185 GB, free: 5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008691/1.297, allocations: 4.538 MB / 1.189 GB, free: 372 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.443e-05/1.297, allocations: 2.062 kB / 1.189 GB, free: 372 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/1.298, allocations: 143 kB / 1.19 GB, free: 232 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/1.298, allocations: 136.5 kB / 1.19 GB, free: 96 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009048/1.307, allocations: 3.999 MB / 1.194 GB, free: 12.11 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.02921/1.336, allocations: 19.76 MB / 1.213 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004245/1.34, allocations: 1.763 MB / 1.215 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002309/1.343, allocations: 0.9129 MB / 1.215 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007351/1.343, allocations: 415.3 kB / 1.216 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002612/1.346, allocations: 1.06 MB / 1.217 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=127): time 3.416e-06/1.346, allocations: 4 kB / 1.217 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=127): time 0.008595/1.355, allocations: 2.924 MB / 1.22 GB, free: 160 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/1.355, allocations: 149.5 kB / 1.22 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008407/1.363, allocations: 4.657 MB / 1.224 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0002589/1.363, allocations: 53.7 kB / 1.225 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00221/1.366, allocations: 2.427 MB / 1.227 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005407/1.366, allocations: 481 kB / 1.227 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/1.367, allocations: 0.6741 MB / 1.228 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.841e-05/1.367, allocations: 305.1 kB / 1.228 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/1.371, allocations: 1.405 MB / 1.23 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004098/1.375, allocations: 2.551 MB / 1.232 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006533/1.382, allocations: 3.735 MB / 1.236 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.387e-05/1.382, allocations: 8 kB / 1.236 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009227/1.391, allocations: 4.332 MB / 1.24 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/1.391, allocations: 49.64 kB / 1.24 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.292e-05/1.391, allocations: 35.98 kB / 1.24 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.722e-05/1.391, allocations: 48 kB / 1.24 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00297/1.394, allocations: 0.7378 MB / 1.241 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.604e-05/1.394, allocations: 72.44 kB / 1.241 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004272/1.398, allocations: 0.5761 MB / 1.242 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002487/1.399, allocations: 144 kB / 1.242 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005058/1.404, allocations: 2.551 MB / 1.244 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003968/1.408, allocations: 2.557 MB / 1.247 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006443/1.414, allocations: 3.726 MB / 1.25 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.314e-05/1.414, allocations: 11.98 kB / 1.25 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.009095/1.423, allocations: 4.327 MB / 1.255 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/1.423, allocations: 50.58 kB / 1.255 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.491e-05/1.423, allocations: 43.92 kB / 1.255 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.594e-05/1.423, allocations: 52 kB / 1.255 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00294/1.426, allocations: 0.733 MB / 1.255 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.798e-05/1.426, allocations: 64.73 kB / 1.255 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004495/1.431, allocations: 497.2 kB / 1.256 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/1.431, allocations: 145.5 kB / 1.256 GB, free: 9.84 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.000623/1.432, allocations: 373.7 kB / 1.256 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/1.433, allocations: 434.3 kB / 1.257 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006032/1.439, allocations: 2.318 MB / 1.259 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.439, allocations: 12 kB / 1.259 GB, free: 6.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/1.439, allocations: 4 kB / 1.259 GB, free: 6.746 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00439/1.443, allocations: 1.926 MB / 1.261 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/1.457, allocations: 6.705 MB / 1.268 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/1.457, allocations: 12 kB / 1.268 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/1.459, allocations: 328.4 kB / 1.268 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/1.459, allocations: 56.83 kB / 1.268 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.459, allocations: 43.97 kB / 1.268 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/1.46, allocations: 1.55 MB / 1.269 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/1.46, allocations: 18.19 kB / 1.27 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007643/1.468, allocations: 3.393 MB / 1.273 GB, free: 8.312 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/1.47, allocations: 0.7294 MB / 1.274 GB, free: 7.559 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007712/1.47, allocations: 36 kB / 1.274 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002809/1.473, allocations: 203.8 kB / 1.274 GB, free: 7.324 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/1.473, allocations: 118.8 kB / 1.274 GB, free: 7.219 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.474, allocations: 71.89 kB / 1.274 GB, free: 7.148 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.005153/1.479, allocations: 3.123 MB / 1.277 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.9e-07/1.479, allocations: 0 / 1.277 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.005815/1.485, allocations: 2.287 MB / 1.279 GB, free: 1.75 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.008939/1.493, allocations: 4.479 MB / 1.284 GB, free: 13.19 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.01131/1.505, allocations: 5.11 MB / 1.289 GB, free: 8.312 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.505, allocations: 4 kB / 1.289 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002663/1.507, allocations: 1.06 MB / 1.29 GB, free: 7.281 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009908/1.517, allocations: 2.149 MB / 1.292 GB, free: 5.188 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06366/1.581, allocations: 40.63 MB / 1.331 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003265/1.584, allocations: 3.015 MB / 1.334 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.005723/1.59, allocations: 1.3 MB / 1.336 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002792/1.593, allocations: 2.093 MB / 1.338 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of SimCode: time 1.021e-06/1.593, allocations: 0 / 1.338 GB, free: 2.699 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).