Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_latest_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_latest_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.001533/0.001533, 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.00173/0.00173, allocations: 193.9 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.568/2.568, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 64.12 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2292, allocations: 157.4 MB / 1.053 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7793/1.009, allocations: 380.1 MB / 1.424 GB, free: 3.945 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.05369/1.062, allocations: 46.51 MB / 1.47 GB, free: 12.5 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005373/1.068, allocations: 175.1 kB / 1.47 GB, free: 12.32 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.01406/1.082, allocations: 8.603 MB / 1.478 GB, free: 3.699 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01673/1.099, allocations: 7.323 MB / 1.485 GB, free: 12.35 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.008248/1.107, allocations: 3.831 MB / 1.489 GB, free: 8.543 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.01966/1.126, allocations: 17.11 MB / 1.506 GB, free: 7.402 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006816/1.133, allocations: 5.583 MB / 1.511 GB, free: 1.738 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01076/1.144, allocations: 6.279 MB / 1.517 GB, free: 11.44 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005998/1.15, allocations: 3.697 MB / 1.521 GB, free: 7.742 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.001272/1.151, allocations: 0.4922 MB / 1.521 GB, free: 7.25 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01176/1.163, allocations: 6.334 MB / 1.528 GB, free: 0.9023 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.002075/1.165, allocations: 1.983 MB / 1.53 GB, free: 14.91 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.003562/1.169, allocations: 3.126 MB / 1.533 GB, free: 11.77 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.01325/1.182, allocations: 10.17 MB / 1.542 GB, free: 1.57 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/1.182, allocations: 0 / 1.542 GB, free: 1.57 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.252e-06/1.182, allocations: 0 / 1.542 GB, free: 1.57 MB / 1.139 GB Notification: Performance of Transformations before backend: time 9.443e-05/1.182, allocations: 0 / 1.542 GB, free: 1.57 MB / 1.139 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.009507/1.192, allocations: 6.442 MB / 1.549 GB, free: 11.02 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/1.192, allocations: 8.625 kB / 1.549 GB, free: 11.01 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005116/1.192, allocations: 480.1 kB / 1.549 GB, free: 10.53 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01095/1.203, allocations: 2.002 MB / 1.551 GB, free: 8.516 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008562/1.212, allocations: 5.616 MB / 1.557 GB, free: 2.82 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00147/1.213, allocations: 0.5949 MB / 1.557 GB, free: 2.199 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004689/1.214, allocations: 348 kB / 1.558 GB, free: 1.859 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008177/1.222, allocations: 4.533 MB / 1.562 GB, free: 13.21 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.966e-05/1.222, allocations: 7.891 kB / 1.562 GB, free: 13.2 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003397/1.222, allocations: 144 kB / 1.562 GB, free: 13.06 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/1.222, allocations: 134.5 kB / 1.562 GB, free: 12.93 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00905/1.232, allocations: 3.995 MB / 1.566 GB, free: 8.926 MB / 1.17 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.02625/1.258, allocations: 19.76 MB / 1.586 GB, free: 3.762 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/1.262, allocations: 1.772 MB / 1.587 GB, free: 1.945 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/1.264, allocations: 0.9129 MB / 1.588 GB, free: 1.031 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006031/1.265, allocations: 409.3 kB / 1.589 GB, free: 0.5586 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002383/1.267, allocations: 1.069 MB / 1.59 GB, free: 15.46 MB / 1.201 GB Notification: Performance of pre-optimization done (n=127): time 2.755e-06/1.267, allocations: 0 / 1.59 GB, free: 15.46 MB / 1.201 GB Notification: Performance of matching and sorting (n=127): time 0.007691/1.275, allocations: 2.929 MB / 1.592 GB, free: 12.5 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/1.275, allocations: 145.5 kB / 1.593 GB, free: 12.33 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006423/1.281, allocations: 4.661 MB / 1.597 GB, free: 7.684 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.0001514/1.281, allocations: 53.7 kB / 1.597 GB, free: 7.625 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.001963/1.283, allocations: 2.429 MB / 1.6 GB, free: 5.172 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003998/1.284, allocations: 477.5 kB / 1.6 GB, free: 4.699 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009356/1.285, allocations: 0.678 MB / 1.601 GB, free: 4.012 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 8.6e-05/1.285, allocations: 305.1 kB / 1.601 GB, free: 3.711 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003231/1.288, allocations: 1.401 MB / 1.602 GB, free: 2.301 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003938/1.292, allocations: 2.549 MB / 1.605 GB, free: 15.24 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006341/1.298, allocations: 3.736 MB / 1.608 GB, free: 11.04 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.129e-05/1.298, allocations: 8 kB / 1.608 GB, free: 11.04 MB / 1.217 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.008745/1.307, allocations: 4.338 MB / 1.613 GB, free: 6.68 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 4.783e-05/1.307, allocations: 45.7 kB / 1.613 GB, free: 6.629 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.101e-05/1.307, allocations: 32 kB / 1.613 GB, free: 6.598 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.529e-05/1.307, allocations: 48 kB / 1.613 GB, free: 6.551 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002938/1.31, allocations: 0.7334 MB / 1.614 GB, free: 5.816 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.446e-05/1.31, allocations: 75.72 kB / 1.614 GB, free: 5.742 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/1.314, allocations: 0.5803 MB / 1.614 GB, free: 5.16 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002264/1.314, allocations: 144 kB / 1.614 GB, free: 5.02 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004685/1.319, allocations: 2.559 MB / 1.617 GB, free: 2.453 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00383/1.323, allocations: 2.552 MB / 1.619 GB, free: 15.39 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006204/1.329, allocations: 3.73 MB / 1.623 GB, free: 11.2 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.782e-05/1.329, allocations: 8 kB / 1.623 GB, free: 11.19 MB / 1.232 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.008559/1.338, allocations: 4.333 MB / 1.627 GB, free: 6.836 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/1.338, allocations: 49.69 kB / 1.627 GB, free: 6.781 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.717e-05/1.338, allocations: 36 kB / 1.627 GB, free: 6.746 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.751e-05/1.338, allocations: 48 kB / 1.627 GB, free: 6.699 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003029/1.341, allocations: 0.7376 MB / 1.628 GB, free: 5.961 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.358e-05/1.341, allocations: 67.73 kB / 1.628 GB, free: 5.895 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004318/1.345, allocations: 494.5 kB / 1.629 GB, free: 5.406 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/1.346, allocations: 140 kB / 1.629 GB, free: 5.27 MB / 1.232 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.0006127/1.346, allocations: 372.8 kB / 1.629 GB, free: 4.898 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008905/1.347, allocations: 434.4 kB / 1.629 GB, free: 4.469 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/1.353, allocations: 2.323 MB / 1.632 GB, free: 2.121 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/1.353, allocations: 12 kB / 1.632 GB, free: 2.109 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/1.353, allocations: 4 kB / 1.632 GB, free: 2.105 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004337/1.357, allocations: 1.929 MB / 1.634 GB, free: 84 kB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0138/1.371, allocations: 6.699 MB / 1.64 GB, free: 9.133 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.371, allocations: 12 kB / 1.64 GB, free: 9.121 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/1.373, allocations: 332 kB / 1.641 GB, free: 8.797 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002163/1.373, allocations: 56.77 kB / 1.641 GB, free: 8.738 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/1.373, allocations: 43.98 kB / 1.641 GB, free: 8.695 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/1.375, allocations: 1.558 MB / 1.642 GB, free: 6.996 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/1.375, allocations: 15.94 kB / 1.642 GB, free: 6.98 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00755/1.382, allocations: 3.391 MB / 1.645 GB, free: 3.43 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/1.384, allocations: 0.7334 MB / 1.646 GB, free: 2.672 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008256/1.385, allocations: 32 kB / 1.646 GB, free: 2.641 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002855/1.387, allocations: 203.8 kB / 1.646 GB, free: 2.441 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/1.388, allocations: 128.2 kB / 1.647 GB, free: 2.316 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.388, allocations: 59.97 kB / 1.647 GB, free: 2.258 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.005544/1.393, allocations: 3.123 MB / 1.65 GB, free: 15.15 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.7e-07/1.393, allocations: 4 kB / 1.65 GB, free: 15.15 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.006082/1.399, allocations: 2.287 MB / 1.652 GB, free: 12.86 MB / 1.264 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.008848/1.408, allocations: 4.47 MB / 1.656 GB, free: 8.219 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.01122/1.42, allocations: 5.107 MB / 1.661 GB, free: 3.109 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.42, allocations: 8.125 kB / 1.661 GB, free: 3.102 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.002582/1.422, allocations: 1.055 MB / 1.662 GB, free: 2.039 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009395/1.432, allocations: 2.149 MB / 1.664 GB, free: 15.94 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06039/1.492, allocations: 40.63 MB / 1.704 GB, free: 3.625 MB / 1.311 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003168/1.495, allocations: 3.022 MB / 1.707 GB, free: 0.5703 MB / 1.311 GB Notification: Performance of simCode: alias equations: time 0.005492/1.501, allocations: 1.304 MB / 1.708 GB, free: 15.26 MB / 1.326 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002673/1.503, allocations: 2.093 MB / 1.71 GB, free: 13.17 MB / 1.326 GB Notification: Performance of SimCode: time 8.42e-07/1.503, allocations: 0 / 1.71 GB, free: 13.17 MB / 1.326 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).