Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_9_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.001443/0.001443, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.162/1.162, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.977/1.977, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4634, allocations: 140.4 MB / 0.949 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.6889/1.152, allocations: 377.4 MB / 1.318 GB, free: 17.29 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03852/1.191, allocations: 44.72 MB / 1.361 GB, free: 16.39 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004848/1.196, allocations: 155.3 kB / 1.361 GB, free: 16.39 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005411/1.201, allocations: 2.382 MB / 1.364 GB, free: 16.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01288/1.214, allocations: 6.836 MB / 1.37 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006465/1.221, allocations: 3.408 MB / 1.374 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01139/1.232, allocations: 15.43 MB / 1.389 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004341/1.236, allocations: 4.777 MB / 1.393 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008253/1.245, allocations: 5.645 MB / 1.399 GB, free: 8.461 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004338/1.249, allocations: 3.71 MB / 1.403 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004331/1.249, allocations: 265.5 kB / 1.403 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008837/1.258, allocations: 6.928 MB / 1.41 GB, free: 2.074 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009729/1.259, allocations: 1.498 MB / 1.411 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002247/1.262, allocations: 2.53 MB / 1.414 GB, free: 14.11 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00872/1.27, allocations: 9.37 MB / 1.423 GB, free: 5.297 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/1.27, allocations: 2.344 kB / 1.423 GB, free: 5.297 MB / 1.014 GB Notification: Performance of FrontEnd: time 6.51e-07/1.27, allocations: 0 / 1.423 GB, free: 5.297 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.302e-05/1.27, allocations: 0 / 1.423 GB, free: 5.297 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 856 * Number of variables: 856 Notification: Performance of Generate backend data structure: time 0.007557/1.278, allocations: 5.659 MB / 1.428 GB, free: 15.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/1.278, allocations: 12.03 kB / 1.428 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004636/1.278, allocations: 470.9 kB / 1.429 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/1.289, allocations: 1.968 MB / 1.431 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005543/1.294, allocations: 3.655 MB / 1.434 GB, free: 9.613 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001201/1.296, allocations: 0.5906 MB / 1.435 GB, free: 9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004043/1.296, allocations: 340 kB / 1.435 GB, free: 8.668 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006985/1.303, allocations: 4.553 MB / 1.44 GB, free: 4.035 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.562e-05/1.303, allocations: 4 kB / 1.44 GB, free: 4.031 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002871/1.303, allocations: 136 kB / 1.44 GB, free: 3.898 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/1.304, allocations: 138.5 kB / 1.44 GB, free: 3.762 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007515/1.311, allocations: 4.063 MB / 1.444 GB, free: 15.7 MB / 1.045 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.02047/1.332, allocations: 18.65 MB / 1.462 GB, free: 12.05 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00353/1.335, allocations: 1.903 MB / 1.464 GB, free: 10.1 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/1.337, allocations: 0.9684 MB / 1.465 GB, free: 9.133 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005466/1.337, allocations: 414.9 kB / 1.465 GB, free: 8.664 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002175/1.34, allocations: 1.146 MB / 1.466 GB, free: 7.496 MB / 1.061 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008991/1.341, allocations: 146.1 kB / 1.466 GB, free: 7.352 MB / 1.061 GB Notification: Performance of pre-optimization done (n=133): time 2.705e-06/1.341, allocations: 0 / 1.466 GB, free: 7.352 MB / 1.061 GB Notification: Performance of matching and sorting (n=133): time 0.006483/1.347, allocations: 3.013 MB / 1.469 GB, free: 4.309 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/1.347, allocations: 156.9 kB / 1.47 GB, free: 4.129 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/1.351, allocations: 3.389 MB / 1.473 GB, free: 0.7188 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/1.351, allocations: 61.7 kB / 1.473 GB, free: 0.6523 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.00139/1.352, allocations: 2.148 MB / 1.475 GB, free: 14.55 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/1.353, allocations: 475.1 kB / 1.475 GB, free: 14.09 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000595/1.353, allocations: 482.4 kB / 1.476 GB, free: 13.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.84e-05/1.353, allocations: 309.1 kB / 1.476 GB, free: 13.31 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/1.356, allocations: 1.103 MB / 1.477 GB, free: 12.2 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/1.358, allocations: 2.114 MB / 1.479 GB, free: 9.609 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004694/1.363, allocations: 3.148 MB / 1.482 GB, free: 6.141 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/1.363, allocations: 11.94 kB / 1.482 GB, free: 6.129 MB / 1.076 GB Notification: Performance of matching and sorting (n=292) (initialization): time 0.006049/1.369, allocations: 3.467 MB / 1.486 GB, free: 2.695 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/1.369, allocations: 49.7 kB / 1.486 GB, free: 2.641 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/1.369, allocations: 36.03 kB / 1.486 GB, free: 2.605 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.91e-05/1.369, allocations: 44 kB / 1.486 GB, free: 2.562 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/1.372, allocations: 0.6474 MB / 1.487 GB, free: 1.914 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.091e-05/1.372, allocations: 63.78 kB / 1.487 GB, free: 1.852 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003283/1.375, allocations: 0.6353 MB / 1.487 GB, free: 1.219 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/1.375, allocations: 124 kB / 1.487 GB, free: 1.098 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003269/1.378, allocations: 2.008 MB / 1.489 GB, free: 15.08 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002752/1.381, allocations: 2.092 MB / 1.491 GB, free: 12.5 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004569/1.386, allocations: 3.086 MB / 1.494 GB, free: 8.977 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.058e-05/1.386, allocations: 8 kB / 1.494 GB, free: 8.969 MB / 1.092 GB Notification: Performance of matching and sorting (n=292) (initialization_lambda0): time 0.005996/1.392, allocations: 3.416 MB / 1.498 GB, free: 5.535 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/1.392, allocations: 42.36 kB / 1.498 GB, free: 5.488 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/1.392, allocations: 32 kB / 1.498 GB, free: 5.457 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/1.392, allocations: 48 kB / 1.498 GB, free: 5.41 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/1.394, allocations: 0.6435 MB / 1.498 GB, free: 4.766 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.335e-05/1.394, allocations: 67.72 kB / 1.499 GB, free: 4.699 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003153/1.397, allocations: 0.5588 MB / 1.499 GB, free: 4.141 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/1.397, allocations: 128 kB / 1.499 GB, free: 4.016 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (288): * Single equations (assignments): 284 * Array equations: 3 * 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.0003586/1.398, allocations: 353.4 kB / 1.5 GB, free: 3.664 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/1.398, allocations: 359.4 kB / 1.5 GB, free: 3.309 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004609/1.403, allocations: 2.415 MB / 1.502 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/1.403, allocations: 12 kB / 1.502 GB, free: 0.8516 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/1.403, allocations: 0 / 1.502 GB, free: 0.8516 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00366/1.407, allocations: 2.038 MB / 1.504 GB, free: 14.72 MB / 1.107 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 postOpt removeSimpleEquations (simulation): time 0.009831/1.416, allocations: 6.483 MB / 1.511 GB, free: 8.016 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/1.416, allocations: 8 kB / 1.511 GB, free: 8.008 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/1.418, allocations: 347.8 kB / 1.511 GB, free: 7.668 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001746/1.418, allocations: 56.83 kB / 1.511 GB, free: 7.609 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.645e-05/1.418, allocations: 43.97 kB / 1.511 GB, free: 7.566 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000933/1.419, allocations: 1.436 MB / 1.512 GB, free: 6 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/1.419, allocations: 23.86 kB / 1.512 GB, free: 5.977 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005999/1.425, allocations: 3.453 MB / 1.516 GB, free: 2.379 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007976/1.426, allocations: 0.6019 MB / 1.516 GB, free: 1.754 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003509/1.426, allocations: 43.88 kB / 1.516 GB, free: 1.711 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/1.429, allocations: 339.5 kB / 1.517 GB, free: 1.379 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/1.429, allocations: 120.6 kB / 1.517 GB, free: 1.258 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/1.429, allocations: 63.95 kB / 1.517 GB, free: 1.195 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002673/1.432, allocations: 2.296 MB / 1.519 GB, free: 14.89 MB / 1.123 GB Notification: Performance of sort global known variables: time 2e-07/1.432, allocations: 0 / 1.519 GB, free: 14.89 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.003845/1.436, allocations: 2.029 MB / 1.521 GB, free: 12.86 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (131): * Single equations (assignments): 128 * 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.006922/1.442, allocations: 4.404 MB / 1.525 GB, free: 8.328 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.007312/1.45, allocations: 4.039 MB / 1.529 GB, free: 4.277 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/1.45, allocations: 4 kB / 1.529 GB, free: 4.273 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.002121/1.452, allocations: 1.109 MB / 1.53 GB, free: 3.156 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005389/1.457, allocations: 1.618 MB / 1.532 GB, free: 1.551 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04864/1.506, allocations: 33.87 MB / 1.565 GB, free: 12.48 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/1.508, allocations: 2.665 MB / 1.568 GB, free: 9.781 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.003998/1.512, allocations: 1.08 MB / 1.569 GB, free: 8.699 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001802/1.514, allocations: 1.745 MB / 1.571 GB, free: 6.953 MB / 1.17 GB Notification: Performance of SimCode: time 6.11e-07/1.514, allocations: 0 / 1.571 GB, free: 6.953 MB / 1.17 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).