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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001208/0.001208, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001174/0.001174, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.101/2.101, allocations: 390.2 MB / 0.6644 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4785/0.4796, allocations: 140.4 MB / 0.9492 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7382/1.218, allocations: 375.1 MB / 1.316 GB, free: 17.26 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03832/1.256, allocations: 44.12 MB / 1.359 GB, free: 16.57 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004961/1.261, allocations: 156.2 kB / 1.359 GB, free: 16.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004961/1.266, allocations: 2.495 MB / 1.361 GB, free: 16.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01318/1.279, allocations: 6.849 MB / 1.368 GB, free: 16.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00652/1.286, allocations: 3.47 MB / 1.371 GB, free: 16.04 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009954/1.296, allocations: 11.53 MB / 1.383 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004898/1.301, allocations: 5.491 MB / 1.388 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009181/1.31, allocations: 6.396 MB / 1.394 GB, free: 10.77 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00452/1.315, allocations: 3.845 MB / 1.398 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005117/1.315, allocations: 0.4935 MB / 1.398 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008414/1.323, allocations: 6.451 MB / 1.405 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001098/1.325, allocations: 1.743 MB / 1.406 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002069/1.327, allocations: 2.786 MB / 1.409 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009232/1.336, allocations: 9.556 MB / 1.418 GB, free: 9.504 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/1.336, allocations: 0 / 1.418 GB, free: 9.504 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.312e-06/1.336, allocations: 0 / 1.418 GB, free: 9.504 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.013e-05/1.336, allocations: 4 kB / 1.418 GB, free: 9.5 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.007922/1.344, allocations: 5.655 MB / 1.424 GB, free: 3.832 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/1.344, allocations: 12.03 kB / 1.424 GB, free: 3.82 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000485/1.344, allocations: 477.6 kB / 1.424 GB, free: 3.348 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/1.355, allocations: 1.976 MB / 1.426 GB, free: 1.367 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/1.361, allocations: 3.655 MB / 1.43 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001205/1.362, allocations: 0.5859 MB / 1.431 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004161/1.362, allocations: 342.3 kB / 1.431 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007179/1.369, allocations: 4.55 MB / 1.435 GB, free: 8.238 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.65e-05/1.369, allocations: 6.438 kB / 1.435 GB, free: 8.234 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/1.37, allocations: 132 kB / 1.435 GB, free: 8.105 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.97e-05/1.37, allocations: 134.5 kB / 1.436 GB, free: 7.973 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00774/1.378, allocations: 4.068 MB / 1.44 GB, free: 3.914 MB / 1.029 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.02165/1.399, allocations: 18.65 MB / 1.458 GB, free: 272 kB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003655/1.403, allocations: 1.898 MB / 1.46 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/1.405, allocations: 0.9646 MB / 1.461 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005786/1.406, allocations: 418.4 kB / 1.461 GB, free: 12.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002239/1.408, allocations: 1.154 MB / 1.462 GB, free: 11.71 MB / 1.061 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001056/1.409, allocations: 150.1 kB / 1.462 GB, free: 11.56 MB / 1.061 GB Notification: Performance of pre-optimization done (n=133): time 3.957e-06/1.409, allocations: 0 / 1.462 GB, free: 11.56 MB / 1.061 GB Notification: Performance of matching and sorting (n=133): time 0.006884/1.416, allocations: 3.013 MB / 1.465 GB, free: 8.516 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/1.416, allocations: 152.8 kB / 1.465 GB, free: 8.34 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004026/1.42, allocations: 3.389 MB / 1.469 GB, free: 4.93 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001302/1.42, allocations: 56.12 kB / 1.469 GB, free: 4.871 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001369/1.421, allocations: 2.144 MB / 1.471 GB, free: 2.715 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/1.422, allocations: 476.9 kB / 1.471 GB, free: 2.254 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006487/1.422, allocations: 479.9 kB / 1.472 GB, free: 1.777 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.316e-05/1.422, allocations: 305.1 kB / 1.472 GB, free: 1.477 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00244/1.425, allocations: 1.103 MB / 1.473 GB, free: 372 kB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002995/1.428, allocations: 2.118 MB / 1.475 GB, free: 13.77 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00499/1.433, allocations: 3.149 MB / 1.478 GB, free: 10.3 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/1.433, allocations: 8 kB / 1.478 GB, free: 10.29 MB / 1.076 GB Notification: Performance of matching and sorting (n=292) (initialization): time 0.006539/1.439, allocations: 3.473 MB / 1.482 GB, free: 6.988 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.425e-05/1.44, allocations: 45.7 kB / 1.482 GB, free: 6.938 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.865e-05/1.44, allocations: 28 kB / 1.482 GB, free: 6.91 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.227e-05/1.44, allocations: 48 kB / 1.482 GB, free: 6.863 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/1.442, allocations: 0.6547 MB / 1.482 GB, free: 6.211 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-05/1.442, allocations: 63.78 kB / 1.482 GB, free: 6.148 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003643/1.446, allocations: 0.6289 MB / 1.483 GB, free: 5.52 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002026/1.446, allocations: 120 kB / 1.483 GB, free: 5.402 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00358/1.45, allocations: 2.011 MB / 1.485 GB, free: 3.383 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003085/1.453, allocations: 2.094 MB / 1.487 GB, free: 0.8008 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005027/1.458, allocations: 3.094 MB / 1.49 GB, free: 13.27 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.901e-05/1.458, allocations: 8 kB / 1.49 GB, free: 13.26 MB / 1.092 GB Notification: Performance of matching and sorting (n=292) (initialization_lambda0): time 0.00664/1.464, allocations: 3.416 MB / 1.493 GB, free: 9.828 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/1.464, allocations: 45.7 kB / 1.494 GB, free: 9.777 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.826e-05/1.465, allocations: 35.94 kB / 1.494 GB, free: 9.742 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.441e-05/1.465, allocations: 44 kB / 1.494 GB, free: 9.699 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/1.467, allocations: 0.6517 MB / 1.494 GB, free: 9.047 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.934e-05/1.467, allocations: 63.78 kB / 1.494 GB, free: 8.984 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/1.471, allocations: 0.5588 MB / 1.495 GB, free: 8.426 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/1.471, allocations: 124 kB / 1.495 GB, free: 8.305 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.0004163/1.471, allocations: 347.3 kB / 1.495 GB, free: 7.957 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/1.472, allocations: 359.4 kB / 1.496 GB, free: 7.602 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/1.476, allocations: 2.419 MB / 1.498 GB, free: 5.152 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/1.476, allocations: 12 kB / 1.498 GB, free: 5.141 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/1.476, allocations: 0 / 1.498 GB, free: 5.141 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003827/1.48, allocations: 2.034 MB / 1.5 GB, free: 3.016 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.491, allocations: 6.335 MB / 1.506 GB, free: 12.48 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/1.491, allocations: 12 kB / 1.506 GB, free: 12.47 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.492, allocations: 343.5 kB / 1.507 GB, free: 12.13 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/1.493, allocations: 52.83 kB / 1.507 GB, free: 12.08 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/1.493, allocations: 43.97 kB / 1.507 GB, free: 12.04 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/1.494, allocations: 1.543 MB / 1.508 GB, free: 10.35 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-05/1.494, allocations: 19.88 kB / 1.508 GB, free: 10.33 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/1.5, allocations: 3.44 MB / 1.511 GB, free: 6.75 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000941/1.501, allocations: 0.6019 MB / 1.512 GB, free: 6.125 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000427/1.501, allocations: 43.92 kB / 1.512 GB, free: 6.082 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002547/1.504, allocations: 327.5 kB / 1.512 GB, free: 5.762 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/1.504, allocations: 124.6 kB / 1.513 GB, free: 5.641 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/1.504, allocations: 59.97 kB / 1.513 GB, free: 5.582 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002996/1.507, allocations: 2.295 MB / 1.515 GB, free: 3.277 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.51e-07/1.507, allocations: 0 / 1.515 GB, free: 3.277 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.004318/1.512, allocations: 2.036 MB / 1.517 GB, free: 1.238 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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.007466/1.519, allocations: 4.401 MB / 1.521 GB, free: 12.71 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.008506/1.528, allocations: 4.25 MB / 1.525 GB, free: 8.453 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/1.528, allocations: 4 kB / 1.525 GB, free: 8.449 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.002238/1.53, allocations: 1.1 MB / 1.526 GB, free: 7.34 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/1.536, allocations: 1.707 MB / 1.528 GB, free: 5.668 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05578/1.592, allocations: 33.86 MB / 1.561 GB, free: 0.6133 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/1.594, allocations: 2.661 MB / 1.564 GB, free: 13.91 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.004399/1.598, allocations: 1.072 MB / 1.565 GB, free: 12.84 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002005/1.6, allocations: 1.741 MB / 1.566 GB, free: 11.1 MB / 1.17 GB Notification: Performance of SimCode: time 7.01e-07/1.601, allocations: 0 / 1.566 GB, free: 11.1 MB / 1.17 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).