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.001316/0.001317, 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.001259/0.001259, allocations: 193.9 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 282.8 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002781/0.002781, allocations: 97.72 kB / 0.6065 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1508, allocations: 89.15 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 1.023/1.174, allocations: 380.1 MB / 1.065 GB, free: 16.34 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.05068/1.225, allocations: 46.53 MB / 1.11 GB, free: 16.14 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006069/1.231, allocations: 176.9 kB / 1.11 GB, free: 16.14 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0144/1.245, allocations: 8.589 MB / 1.119 GB, free: 16.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01543/1.261, allocations: 7.335 MB / 1.126 GB, free: 15.7 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.008315/1.269, allocations: 3.832 MB / 1.13 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0187/1.288, allocations: 17.12 MB / 1.146 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006474/1.294, allocations: 5.584 MB / 1.152 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0112/1.306, allocations: 6.275 MB / 1.158 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006248/1.312, allocations: 3.706 MB / 1.162 GB, free: 11.02 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0008917/1.313, allocations: 0.4922 MB / 1.162 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0109/1.324, allocations: 6.324 MB / 1.168 GB, free: 5.352 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001638/1.325, allocations: 1.988 MB / 1.17 GB, free: 3.398 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003485/1.329, allocations: 3.128 MB / 1.173 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01599/1.345, allocations: 10.16 MB / 1.183 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/1.345, allocations: 4 kB / 1.183 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/1.345, allocations: 0 / 1.183 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001434/1.345, allocations: 0 / 1.183 GB, free: 6.582 MB / 0.7794 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.01201/1.357, allocations: 6.437 MB / 1.189 GB, free: 116 kB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/1.357, allocations: 16.02 kB / 1.189 GB, free: 100 kB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006626/1.358, allocations: 478.6 kB / 1.19 GB, free: 15.62 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01254/1.37, allocations: 2.015 MB / 1.192 GB, free: 13.61 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/1.381, allocations: 5.608 MB / 1.197 GB, free: 8.105 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001647/1.383, allocations: 0.5939 MB / 1.198 GB, free: 7.488 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006569/1.384, allocations: 348.1 kB / 1.198 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009404/1.393, allocations: 4.535 MB / 1.203 GB, free: 2.516 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.714e-05/1.393, allocations: 7.188 kB / 1.203 GB, free: 2.512 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003607/1.393, allocations: 142.7 kB / 1.203 GB, free: 2.375 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/1.394, allocations: 134.5 kB / 1.203 GB, free: 2.242 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009822/1.403, allocations: 3.996 MB / 1.207 GB, free: 14.26 MB / 0.8106 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.03096/1.434, allocations: 19.76 MB / 1.226 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004486/1.439, allocations: 1.763 MB / 1.228 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002347/1.441, allocations: 0.9167 MB / 1.229 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007064/1.442, allocations: 414.2 kB / 1.229 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002687/1.445, allocations: 1.07 MB / 1.23 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=127): time 3.237e-06/1.445, allocations: 0 / 1.23 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of matching and sorting (n=127): time 0.008739/1.453, allocations: 2.926 MB / 1.233 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.499e-05/1.454, allocations: 141.5 kB / 1.233 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006998/1.461, allocations: 4.658 MB / 1.238 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0002039/1.461, allocations: 61.06 kB / 1.238 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.463, allocations: 2.433 MB / 1.24 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005058/1.464, allocations: 472.3 kB / 1.241 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001043/1.465, allocations: 0.6766 MB / 1.241 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001532/1.465, allocations: 309.1 kB / 1.242 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003564/1.469, allocations: 1.397 MB / 1.243 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004551/1.473, allocations: 2.553 MB / 1.245 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007157/1.48, allocations: 3.727 MB / 1.249 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.25e-05/1.48, allocations: 11.94 kB / 1.249 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009795/1.49, allocations: 4.334 MB / 1.253 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.441e-05/1.49, allocations: 53.12 kB / 1.253 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.496e-05/1.49, allocations: 32 kB / 1.253 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.86e-05/1.49, allocations: 48 kB / 1.253 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003034/1.493, allocations: 0.7357 MB / 1.254 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-05/1.493, allocations: 71.62 kB / 1.254 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004307/1.498, allocations: 0.5751 MB / 1.255 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002526/1.498, allocations: 140 kB / 1.255 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005541/1.504, allocations: 2.563 MB / 1.257 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004506/1.508, allocations: 2.545 MB / 1.26 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007098/1.515, allocations: 3.731 MB / 1.264 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.555e-05/1.515, allocations: 8 kB / 1.264 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.009815/1.525, allocations: 4.341 MB / 1.268 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.927e-05/1.525, allocations: 53.89 kB / 1.268 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.306e-05/1.525, allocations: 32 kB / 1.268 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.773e-05/1.525, allocations: 48 kB / 1.268 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/1.528, allocations: 0.733 MB / 1.269 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.88e-05/1.528, allocations: 64.27 kB / 1.269 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/1.533, allocations: 499.1 kB / 1.269 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002511/1.533, allocations: 140 kB / 1.269 GB, free: 11.98 MB / 0.8731 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.000632/1.534, allocations: 368.6 kB / 1.27 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007475/1.534, allocations: 434.4 kB / 1.27 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006185/1.541, allocations: 2.326 MB / 1.272 GB, free: 8.898 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/1.541, allocations: 16 kB / 1.272 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.541, allocations: 0 / 1.272 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004698/1.545, allocations: 1.921 MB / 1.274 GB, free: 6.883 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.559, allocations: 6.7 MB / 1.281 GB, free: 48 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/1.559, allocations: 16.16 kB / 1.281 GB, free: 32 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/1.561, allocations: 327.8 kB / 1.281 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002298/1.561, allocations: 56.83 kB / 1.281 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/1.562, allocations: 43.98 kB / 1.281 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/1.563, allocations: 1.551 MB / 1.283 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.29e-05/1.563, allocations: 15 kB / 1.283 GB, free: 13.94 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008296/1.571, allocations: 3.396 MB / 1.286 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/1.573, allocations: 0.7256 MB / 1.287 GB, free: 9.641 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005053/1.574, allocations: 39.98 kB / 1.287 GB, free: 9.602 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.576, allocations: 203.8 kB / 1.287 GB, free: 9.402 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/1.576, allocations: 117.9 kB / 1.287 GB, free: 9.297 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/1.577, allocations: 63.97 kB / 1.287 GB, free: 9.234 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.005192/1.582, allocations: 3.123 MB / 1.29 GB, free: 6.129 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/1.582, allocations: 0 / 1.29 GB, free: 6.129 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.005704/1.587, allocations: 2.291 MB / 1.293 GB, free: 3.832 MB / 0.8887 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.009351/1.597, allocations: 4.488 MB / 1.297 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01189/1.609, allocations: 5.103 MB / 1.302 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/1.609, allocations: 8.188 kB / 1.302 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002729/1.611, allocations: 1.051 MB / 1.303 GB, free: 9.336 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008754/1.62, allocations: 2.143 MB / 1.305 GB, free: 7.246 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06579/1.686, allocations: 40.63 MB / 1.345 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003121/1.689, allocations: 3.03 MB / 1.348 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.005773/1.695, allocations: 1.3 MB / 1.349 GB, free: 6.824 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003001/1.698, allocations: 2.093 MB / 1.351 GB, free: 4.73 MB / 0.9512 GB Notification: Performance of SimCode: time 8.41e-07/1.698, allocations: 0 / 1.351 GB, free: 4.73 MB / 0.9512 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).