Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_11_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_11_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.001726/0.001726, 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.001314/0.001314, allocations: 196 kB / 16.53 MB, free: 6.699 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.485/2.485, allocations: 469.8 MB / 0.7424 GB, free: 7.465 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 67.78 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2347, allocations: 159.1 MB / 1.064 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7211/0.9558, allocations: 380.1 MB / 1.435 GB, free: 6.855 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.05502/1.011, allocations: 46.54 MB / 1.481 GB, free: 13.37 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004818/1.016, allocations: 175.1 kB / 1.481 GB, free: 13.2 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0147/1.03, allocations: 8.574 MB / 1.489 GB, free: 4.602 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.01581/1.046, allocations: 7.333 MB / 1.496 GB, free: 13.23 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.007724/1.054, allocations: 3.844 MB / 1.5 GB, free: 9.418 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.01977/1.074, allocations: 17.11 MB / 1.517 GB, free: 8.277 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007148/1.081, allocations: 5.583 MB / 1.522 GB, free: 2.613 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01069/1.092, allocations: 6.271 MB / 1.528 GB, free: 12.32 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005861/1.098, allocations: 3.697 MB / 1.532 GB, free: 8.625 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0008516/1.098, allocations: 0.4922 MB / 1.533 GB, free: 8.133 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/1.109, allocations: 6.326 MB / 1.539 GB, free: 1.793 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.001848/1.111, allocations: 1.983 MB / 1.541 GB, free: 15.8 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.003176/1.114, allocations: 3.134 MB / 1.544 GB, free: 12.66 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01123/1.125, allocations: 10.17 MB / 1.554 GB, free: 2.461 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/1.125, allocations: 0 / 1.554 GB, free: 2.461 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.253e-06/1.125, allocations: 0 / 1.554 GB, free: 2.461 MB / 1.154 GB Notification: Performance of Transformations before backend: time 5.089e-05/1.125, allocations: 0 / 1.554 GB, free: 2.461 MB / 1.154 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.009287/1.134, allocations: 6.438 MB / 1.56 GB, free: 11.91 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/1.134, allocations: 11.98 kB / 1.56 GB, free: 11.9 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005405/1.135, allocations: 476.1 kB / 1.56 GB, free: 11.42 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01034/1.145, allocations: 2.018 MB / 1.562 GB, free: 9.395 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008298/1.154, allocations: 5.6 MB / 1.568 GB, free: 3.715 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/1.155, allocations: 0.6027 MB / 1.568 GB, free: 3.086 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004653/1.156, allocations: 351.9 kB / 1.569 GB, free: 2.742 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007638/1.163, allocations: 4.53 MB / 1.573 GB, free: 14.1 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.835e-05/1.163, allocations: 0 / 1.573 GB, free: 14.1 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003048/1.164, allocations: 144 kB / 1.573 GB, free: 13.96 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/1.164, allocations: 142.4 kB / 1.573 GB, free: 13.82 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008412/1.172, allocations: 3.995 MB / 1.577 GB, free: 9.812 MB / 1.186 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.02461/1.197, allocations: 19.76 MB / 1.597 GB, free: 4.645 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003904/1.201, allocations: 1.765 MB / 1.598 GB, free: 2.836 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/1.203, allocations: 0.9207 MB / 1.599 GB, free: 1.91 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006076/1.203, allocations: 405.3 kB / 1.6 GB, free: 1.441 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002336/1.206, allocations: 1.069 MB / 1.601 GB, free: 356 kB / 1.201 GB Notification: Performance of pre-optimization done (n=127): time 2.635e-06/1.206, allocations: 0 / 1.601 GB, free: 356 kB / 1.201 GB Notification: Performance of matching and sorting (n=127): time 0.0074/1.213, allocations: 2.925 MB / 1.604 GB, free: 13.39 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/1.213, allocations: 145.5 kB / 1.604 GB, free: 13.22 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00567/1.219, allocations: 4.657 MB / 1.608 GB, free: 8.578 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001335/1.219, allocations: 61.64 kB / 1.608 GB, free: 8.512 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.221, allocations: 2.429 MB / 1.611 GB, free: 6.059 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.000394/1.221, allocations: 469.5 kB / 1.611 GB, free: 5.594 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008909/1.222, allocations: 0.6819 MB / 1.612 GB, free: 4.902 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001029/1.222, allocations: 305.1 kB / 1.612 GB, free: 4.602 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/1.225, allocations: 1.405 MB / 1.614 GB, free: 3.188 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003937/1.229, allocations: 2.553 MB / 1.616 GB, free: 128 kB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006242/1.236, allocations: 3.728 MB / 1.62 GB, free: 11.94 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/1.236, allocations: 8 kB / 1.62 GB, free: 11.93 MB / 1.232 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.008117/1.244, allocations: 4.333 MB / 1.624 GB, free: 7.574 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 4.716e-05/1.244, allocations: 48.14 kB / 1.624 GB, free: 7.523 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.308e-05/1.244, allocations: 36 kB / 1.624 GB, free: 7.488 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.881e-05/1.244, allocations: 52 kB / 1.624 GB, free: 7.438 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002717/1.247, allocations: 0.7294 MB / 1.625 GB, free: 6.707 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.047e-05/1.247, allocations: 71.72 kB / 1.625 GB, free: 6.637 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/1.25, allocations: 0.5755 MB / 1.625 GB, free: 6.059 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000204/1.25, allocations: 144 kB / 1.625 GB, free: 5.918 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004471/1.255, allocations: 2.559 MB / 1.628 GB, free: 3.352 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003921/1.259, allocations: 2.541 MB / 1.63 GB, free: 308 kB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00615/1.265, allocations: 3.734 MB / 1.634 GB, free: 12.1 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.266e-05/1.265, allocations: 8 kB / 1.634 GB, free: 12.09 MB / 1.248 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.008004/1.273, allocations: 4.33 MB / 1.638 GB, free: 7.742 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/1.273, allocations: 49.7 kB / 1.638 GB, free: 7.688 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/1.273, allocations: 36 kB / 1.638 GB, free: 7.652 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.899e-05/1.273, allocations: 51.94 kB / 1.638 GB, free: 7.602 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/1.276, allocations: 0.741 MB / 1.639 GB, free: 6.859 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.326e-05/1.276, allocations: 71.72 kB / 1.639 GB, free: 6.789 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/1.279, allocations: 499.4 kB / 1.64 GB, free: 6.301 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002073/1.279, allocations: 143.9 kB / 1.64 GB, free: 6.16 MB / 1.248 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.0004408/1.279, allocations: 367.1 kB / 1.64 GB, free: 5.793 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005129/1.28, allocations: 434.4 kB / 1.641 GB, free: 5.363 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005201/1.285, allocations: 2.327 MB / 1.643 GB, free: 3.012 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/1.285, allocations: 12 kB / 1.643 GB, free: 3 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/1.285, allocations: 3.984 kB / 1.643 GB, free: 2.996 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004199/1.289, allocations: 1.929 MB / 1.645 GB, free: 0.9766 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/1.301, allocations: 6.699 MB / 1.651 GB, free: 10.03 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/1.301, allocations: 16.03 kB / 1.651 GB, free: 10.02 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/1.302, allocations: 327.5 kB / 1.652 GB, free: 9.695 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/1.302, allocations: 52.83 kB / 1.652 GB, free: 9.641 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.897e-05/1.302, allocations: 51.91 kB / 1.652 GB, free: 9.59 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/1.304, allocations: 1.543 MB / 1.653 GB, free: 7.906 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/1.304, allocations: 15.94 kB / 1.653 GB, free: 7.891 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006898/1.311, allocations: 3.396 MB / 1.657 GB, free: 4.336 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/1.312, allocations: 0.7256 MB / 1.657 GB, free: 3.586 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004346/1.312, allocations: 39.98 kB / 1.657 GB, free: 3.547 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/1.314, allocations: 199.8 kB / 1.658 GB, free: 3.352 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/1.315, allocations: 116.2 kB / 1.658 GB, free: 3.238 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/1.315, allocations: 71.89 kB / 1.658 GB, free: 3.168 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.004152/1.319, allocations: 3.119 MB / 1.661 GB, free: 68 kB / 1.264 GB Notification: Performance of sort global known variables: time 2.01e-07/1.319, allocations: 0 / 1.661 GB, free: 68 kB / 1.264 GB Notification: Performance of remove unused functions: time 0.004509/1.323, allocations: 2.295 MB / 1.663 GB, free: 13.77 MB / 1.279 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.008152/1.331, allocations: 4.485 MB / 1.667 GB, free: 9.125 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.0101/1.342, allocations: 5.107 MB / 1.672 GB, free: 4.004 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.342, allocations: 5.25 kB / 1.672 GB, free: 4 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.002378/1.344, allocations: 1.059 MB / 1.673 GB, free: 2.93 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007216/1.351, allocations: 2.128 MB / 1.676 GB, free: 0.8555 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.054/1.405, allocations: 40.63 MB / 1.715 GB, free: 4.555 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002655/1.408, allocations: 3.019 MB / 1.718 GB, free: 1.504 MB / 1.326 GB Notification: Performance of simCode: alias equations: time 0.004791/1.413, allocations: 1.304 MB / 1.719 GB, free: 200 kB / 1.326 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002524/1.415, allocations: 2.097 MB / 1.721 GB, free: 14.09 MB / 1.342 GB Notification: Performance of SimCode: time 5.1e-07/1.415, allocations: 0 / 1.721 GB, free: 14.09 MB / 1.342 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).