Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_10_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.001102/0.001102, 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.001137/0.001137, allocations: 195.2 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.296/1.296, allocations: 222.9 MB / 240.2 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.453/2.453, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 67.89 kB / 0.8694 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5142/0.5155, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7753/1.291, allocations: 380.1 MB / 1.389 GB, free: 15.97 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.04889/1.34, allocations: 46.5 MB / 1.434 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005104/1.345, allocations: 179.8 kB / 1.434 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.01375/1.359, allocations: 8.588 MB / 1.443 GB, free: 9.445 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01593/1.375, allocations: 7.32 MB / 1.45 GB, free: 3.43 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.007883/1.383, allocations: 3.839 MB / 1.454 GB, free: 15.61 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01918/1.402, allocations: 17.12 MB / 1.47 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006394/1.408, allocations: 5.575 MB / 1.476 GB, free: 8.809 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0109/1.419, allocations: 6.282 MB / 1.482 GB, free: 2.504 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005138/1.424, allocations: 3.699 MB / 1.485 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0007101/1.425, allocations: 0.4922 MB / 1.486 GB, free: 14.32 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01062/1.436, allocations: 6.326 MB / 1.492 GB, free: 7.977 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.001662/1.437, allocations: 1.99 MB / 1.494 GB, free: 5.98 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.002985/1.44, allocations: 3.13 MB / 1.497 GB, free: 2.836 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0114/1.452, allocations: 10.17 MB / 1.507 GB, free: 8.633 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/1.452, allocations: 0 / 1.507 GB, free: 8.633 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.212e-06/1.452, allocations: 0 / 1.507 GB, free: 8.633 MB / 1.092 GB Notification: Performance of Transformations before backend: time 7.054e-05/1.452, allocations: 0 / 1.507 GB, free: 8.633 MB / 1.092 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.009545/1.461, allocations: 6.43 MB / 1.513 GB, free: 2.09 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/1.461, allocations: 11.97 kB / 1.513 GB, free: 2.078 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005406/1.462, allocations: 476.1 kB / 1.514 GB, free: 1.602 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/1.473, allocations: 2.01 MB / 1.516 GB, free: 15.58 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008583/1.482, allocations: 5.616 MB / 1.521 GB, free: 9.883 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00147/1.483, allocations: 0.5948 MB / 1.522 GB, free: 9.262 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004709/1.484, allocations: 348 kB / 1.522 GB, free: 8.922 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007843/1.492, allocations: 4.533 MB / 1.527 GB, free: 4.273 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.392e-05/1.492, allocations: 3.938 kB / 1.527 GB, free: 4.27 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000328/1.492, allocations: 140 kB / 1.527 GB, free: 4.133 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/1.492, allocations: 138.5 kB / 1.527 GB, free: 3.996 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008822/1.501, allocations: 4.003 MB / 1.531 GB, free: 15.98 MB / 1.123 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.02465/1.526, allocations: 19.76 MB / 1.55 GB, free: 10.81 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004011/1.53, allocations: 1.769 MB / 1.552 GB, free: 9 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/1.532, allocations: 0.9207 MB / 1.553 GB, free: 8.078 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000614/1.532, allocations: 413.3 kB / 1.553 GB, free: 7.598 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002409/1.535, allocations: 1.061 MB / 1.554 GB, free: 6.512 MB / 1.139 GB Notification: Performance of pre-optimization done (n=127): time 3.086e-06/1.535, allocations: 0 / 1.554 GB, free: 6.512 MB / 1.139 GB Notification: Performance of matching and sorting (n=127): time 0.007734/1.543, allocations: 2.929 MB / 1.557 GB, free: 3.547 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/1.543, allocations: 145.5 kB / 1.557 GB, free: 3.375 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00556/1.548, allocations: 4.654 MB / 1.562 GB, free: 14.73 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001345/1.548, allocations: 65.69 kB / 1.562 GB, free: 14.66 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.001743/1.55, allocations: 2.425 MB / 1.564 GB, free: 12.21 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/1.55, allocations: 465.5 kB / 1.564 GB, free: 11.75 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008822/1.551, allocations: 0.6858 MB / 1.565 GB, free: 11.06 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 7.469e-05/1.551, allocations: 305.1 kB / 1.565 GB, free: 10.76 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003152/1.555, allocations: 1.405 MB / 1.567 GB, free: 9.344 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003831/1.558, allocations: 2.549 MB / 1.569 GB, free: 6.289 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006165/1.565, allocations: 3.739 MB / 1.573 GB, free: 2.082 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/1.565, allocations: 8 kB / 1.573 GB, free: 2.074 MB / 1.154 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.008309/1.573, allocations: 4.329 MB / 1.577 GB, free: 13.73 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/1.573, allocations: 45.7 kB / 1.577 GB, free: 13.68 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/1.573, allocations: 32 kB / 1.577 GB, free: 13.65 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-05/1.573, allocations: 48 kB / 1.577 GB, free: 13.6 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/1.576, allocations: 0.7415 MB / 1.578 GB, free: 12.86 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.592e-05/1.576, allocations: 71.72 kB / 1.578 GB, free: 12.79 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003598/1.58, allocations: 0.5717 MB / 1.579 GB, free: 12.21 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/1.58, allocations: 144 kB / 1.579 GB, free: 12.07 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004574/1.584, allocations: 2.551 MB / 1.581 GB, free: 9.516 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004002/1.588, allocations: 2.556 MB / 1.584 GB, free: 6.453 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006243/1.595, allocations: 3.73 MB / 1.587 GB, free: 2.25 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.485e-05/1.595, allocations: 11.94 kB / 1.587 GB, free: 2.238 MB / 1.17 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.008396/1.603, allocations: 4.334 MB / 1.592 GB, free: 13.89 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/1.603, allocations: 53.69 kB / 1.592 GB, free: 13.83 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.9e-05/1.603, allocations: 32 kB / 1.592 GB, free: 13.8 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.169e-05/1.603, allocations: 48.81 kB / 1.592 GB, free: 13.75 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002856/1.606, allocations: 0.7332 MB / 1.593 GB, free: 13.02 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-05/1.606, allocations: 67.78 kB / 1.593 GB, free: 12.95 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/1.61, allocations: 0.4896 MB / 1.593 GB, free: 12.46 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/1.61, allocations: 140 kB / 1.593 GB, free: 12.32 MB / 1.186 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.0004551/1.611, allocations: 371.1 kB / 1.594 GB, free: 11.95 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/1.611, allocations: 434.4 kB / 1.594 GB, free: 11.52 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005422/1.617, allocations: 2.323 MB / 1.596 GB, free: 9.176 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/1.617, allocations: 23.94 kB / 1.596 GB, free: 9.152 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/1.617, allocations: 0 / 1.596 GB, free: 9.152 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004271/1.621, allocations: 1.922 MB / 1.598 GB, free: 7.141 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/1.632, allocations: 6.702 MB / 1.605 GB, free: 192 kB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.632, allocations: 12 kB / 1.605 GB, free: 180 kB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/1.634, allocations: 328.2 kB / 1.605 GB, free: 15.86 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/1.634, allocations: 60.83 kB / 1.605 GB, free: 15.79 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/1.634, allocations: 43.98 kB / 1.605 GB, free: 15.75 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/1.636, allocations: 1.547 MB / 1.607 GB, free: 14.07 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/1.636, allocations: 15.94 kB / 1.607 GB, free: 14.05 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007053/1.643, allocations: 3.392 MB / 1.61 GB, free: 10.5 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/1.644, allocations: 0.722 MB / 1.611 GB, free: 9.75 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000517/1.644, allocations: 43.89 kB / 1.611 GB, free: 9.707 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/1.647, allocations: 203.8 kB / 1.611 GB, free: 9.508 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/1.647, allocations: 120.3 kB / 1.611 GB, free: 9.387 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/1.647, allocations: 63.97 kB / 1.611 GB, free: 9.324 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.004416/1.652, allocations: 3.127 MB / 1.614 GB, free: 6.215 MB / 1.201 GB Notification: Performance of sort global known variables: time 1.71e-07/1.652, allocations: 0 / 1.614 GB, free: 6.215 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.004849/1.657, allocations: 2.295 MB / 1.616 GB, free: 3.914 MB / 1.201 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.008441/1.665, allocations: 4.462 MB / 1.621 GB, free: 15.3 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.01043/1.675, allocations: 5.107 MB / 1.626 GB, free: 10.18 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.675, allocations: 4 kB / 1.626 GB, free: 10.17 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.002504/1.678, allocations: 1.063 MB / 1.627 GB, free: 9.098 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007799/1.686, allocations: 2.141 MB / 1.629 GB, free: 7.016 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05558/1.741, allocations: 40.64 MB / 1.669 GB, free: 10.7 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/1.744, allocations: 3.022 MB / 1.671 GB, free: 7.648 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.005276/1.749, allocations: 1.308 MB / 1.673 GB, free: 6.336 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002552/1.752, allocations: 2.089 MB / 1.675 GB, free: 4.246 MB / 1.264 GB Notification: Performance of SimCode: time 1.994e-06/1.752, allocations: 4 kB / 1.675 GB, free: 4.242 MB / 1.264 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).