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.001834/0.001834, 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.002006/0.002006, allocations: 194.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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.43 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.828/2.828, allocations: 469.8 MB / 0.7424 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 68.62 kB / 0.9087 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2538, allocations: 159.2 MB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.8136/1.067, allocations: 380.1 MB / 1.435 GB, free: 6.852 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.06209/1.13, allocations: 46.54 MB / 1.481 GB, free: 13.41 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004629/1.134, allocations: 175.1 kB / 1.481 GB, free: 13.24 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.01574/1.15, allocations: 8.59 MB / 1.489 GB, free: 4.625 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.01671/1.167, allocations: 7.335 MB / 1.496 GB, free: 13.26 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.008285/1.175, allocations: 3.835 MB / 1.5 GB, free: 9.457 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.02178/1.197, allocations: 17.11 MB / 1.517 GB, free: 8.312 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007217/1.204, allocations: 5.588 MB / 1.522 GB, free: 2.641 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01122/1.215, allocations: 6.271 MB / 1.529 GB, free: 12.35 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/1.221, allocations: 3.695 MB / 1.532 GB, free: 8.656 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0007967/1.222, allocations: 0.4922 MB / 1.533 GB, free: 8.164 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01164/1.233, allocations: 6.33 MB / 1.539 GB, free: 1.82 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.002047/1.235, allocations: 1.986 MB / 1.541 GB, free: 15.83 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.004152/1.24, allocations: 3.13 MB / 1.544 GB, free: 12.68 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01353/1.253, allocations: 10.17 MB / 1.554 GB, free: 2.488 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/1.253, allocations: 0 / 1.554 GB, free: 2.488 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.292e-06/1.253, allocations: 0 / 1.554 GB, free: 2.488 MB / 1.154 GB Notification: Performance of Transformations before backend: time 8.957e-05/1.253, allocations: 0 / 1.554 GB, free: 2.488 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.01103/1.264, allocations: 6.438 MB / 1.56 GB, free: 11.94 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.264, allocations: 15.98 kB / 1.56 GB, free: 11.92 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006198/1.265, allocations: 476.1 kB / 1.56 GB, free: 11.45 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/1.277, allocations: 2.01 MB / 1.562 GB, free: 9.426 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009672/1.287, allocations: 5.604 MB / 1.568 GB, free: 3.742 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001626/1.288, allocations: 0.6027 MB / 1.568 GB, free: 3.113 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005433/1.289, allocations: 351.9 kB / 1.569 GB, free: 2.77 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008842/1.298, allocations: 4.526 MB / 1.573 GB, free: 14.13 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.33e-05/1.298, allocations: 7.938 kB / 1.573 GB, free: 14.12 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003576/1.298, allocations: 136 kB / 1.573 GB, free: 13.99 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/1.298, allocations: 138.4 kB / 1.574 GB, free: 13.85 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009771/1.308, allocations: 4.003 MB / 1.577 GB, free: 9.84 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.02874/1.337, allocations: 19.76 MB / 1.597 GB, free: 4.672 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004517/1.341, allocations: 1.769 MB / 1.598 GB, free: 2.859 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/1.344, allocations: 0.9168 MB / 1.599 GB, free: 1.938 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007076/1.345, allocations: 409.3 kB / 1.6 GB, free: 1.465 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002661/1.347, allocations: 1.057 MB / 1.601 GB, free: 392 kB / 1.201 GB Notification: Performance of pre-optimization done (n=127): time 3.006e-06/1.347, allocations: 4 kB / 1.601 GB, free: 388 kB / 1.201 GB Notification: Performance of matching and sorting (n=127): time 0.008428/1.356, allocations: 2.933 MB / 1.604 GB, free: 13.41 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/1.356, allocations: 141.5 kB / 1.604 GB, free: 13.25 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006571/1.362, allocations: 4.657 MB / 1.608 GB, free: 8.602 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001482/1.363, allocations: 57.7 kB / 1.608 GB, free: 8.539 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.002235/1.365, allocations: 2.429 MB / 1.611 GB, free: 6.09 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004656/1.365, allocations: 469.5 kB / 1.611 GB, free: 5.625 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/1.366, allocations: 0.6896 MB / 1.612 GB, free: 4.926 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001224/1.366, allocations: 301.1 kB / 1.612 GB, free: 4.629 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003485/1.37, allocations: 1.401 MB / 1.614 GB, free: 3.219 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004501/1.374, allocations: 2.553 MB / 1.616 GB, free: 160 kB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007115/1.382, allocations: 3.728 MB / 1.62 GB, free: 11.97 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/1.382, allocations: 8 kB / 1.62 GB, free: 11.96 MB / 1.232 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009318/1.391, allocations: 4.337 MB / 1.624 GB, free: 7.602 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 5.352e-05/1.391, allocations: 45.7 kB / 1.624 GB, free: 7.551 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.66e-05/1.391, allocations: 32 kB / 1.624 GB, free: 7.52 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.728e-05/1.391, allocations: 48 kB / 1.624 GB, free: 7.473 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/1.394, allocations: 0.7455 MB / 1.625 GB, free: 6.727 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-05/1.394, allocations: 71.72 kB / 1.625 GB, free: 6.656 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003799/1.398, allocations: 0.5717 MB / 1.625 GB, free: 6.082 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002392/1.398, allocations: 144 kB / 1.625 GB, free: 5.941 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005128/1.403, allocations: 2.555 MB / 1.628 GB, free: 3.379 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004484/1.408, allocations: 2.548 MB / 1.63 GB, free: 328 kB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007069/1.415, allocations: 3.73 MB / 1.634 GB, free: 12.12 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.458e-05/1.415, allocations: 8 kB / 1.634 GB, free: 12.12 MB / 1.248 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.009257/1.424, allocations: 4.337 MB / 1.638 GB, free: 7.758 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/1.424, allocations: 45.7 kB / 1.638 GB, free: 7.707 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/1.424, allocations: 32.88 kB / 1.638 GB, free: 7.676 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.486e-05/1.424, allocations: 48 kB / 1.638 GB, free: 7.629 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/1.427, allocations: 0.741 MB / 1.639 GB, free: 6.887 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.827e-05/1.428, allocations: 75.7 kB / 1.639 GB, free: 6.812 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003781/1.431, allocations: 499.5 kB / 1.64 GB, free: 6.324 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002346/1.432, allocations: 147.9 kB / 1.64 GB, free: 6.18 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.0005162/1.432, allocations: 367.1 kB / 1.64 GB, free: 5.812 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006023/1.433, allocations: 434.4 kB / 1.641 GB, free: 5.383 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005926/1.439, allocations: 2.316 MB / 1.643 GB, free: 3.043 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/1.439, allocations: 16 kB / 1.643 GB, free: 3.027 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/1.439, allocations: 7.938 kB / 1.643 GB, free: 3.02 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004785/1.444, allocations: 1.918 MB / 1.645 GB, free: 1.012 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/1.456, allocations: 6.702 MB / 1.651 GB, free: 10.06 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.456, allocations: 12 kB / 1.651 GB, free: 10.05 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/1.458, allocations: 328.2 kB / 1.652 GB, free: 9.73 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000218/1.458, allocations: 60.81 kB / 1.652 GB, free: 9.668 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/1.458, allocations: 43.92 kB / 1.652 GB, free: 9.625 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/1.46, allocations: 1.554 MB / 1.653 GB, free: 7.93 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/1.46, allocations: 15.94 kB / 1.653 GB, free: 7.914 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007845/1.468, allocations: 3.395 MB / 1.657 GB, free: 4.359 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/1.469, allocations: 0.7216 MB / 1.657 GB, free: 3.613 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005089/1.469, allocations: 35.98 kB / 1.657 GB, free: 3.578 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/1.472, allocations: 207.8 kB / 1.658 GB, free: 3.375 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/1.472, allocations: 120.2 kB / 1.658 GB, free: 3.258 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/1.472, allocations: 63.95 kB / 1.658 GB, free: 3.195 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.004748/1.477, allocations: 3.123 MB / 1.661 GB, free: 92 kB / 1.264 GB Notification: Performance of sort global known variables: time 2.31e-07/1.477, allocations: 0 / 1.661 GB, free: 92 kB / 1.264 GB Notification: Performance of remove unused functions: time 0.005172/1.482, allocations: 2.295 MB / 1.663 GB, free: 13.79 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.009393/1.492, allocations: 4.474 MB / 1.667 GB, free: 9.16 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01155/1.503, allocations: 5.108 MB / 1.672 GB, free: 4.039 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.503, allocations: 0 / 1.672 GB, free: 4.039 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.00277/1.506, allocations: 1.075 MB / 1.673 GB, free: 2.953 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008281/1.514, allocations: 2.136 MB / 1.676 GB, free: 0.875 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06223/1.577, allocations: 40.62 MB / 1.715 GB, free: 4.582 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/1.58, allocations: 3.019 MB / 1.718 GB, free: 1.531 MB / 1.326 GB Notification: Performance of simCode: alias equations: time 0.0056/1.585, allocations: 1.304 MB / 1.719 GB, free: 228 kB / 1.326 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002919/1.588, allocations: 2.097 MB / 1.721 GB, free: 14.12 MB / 1.342 GB Notification: Performance of SimCode: time 8.21e-07/1.588, allocations: 0 / 1.721 GB, free: 14.12 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).