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.001236/0.001239, 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.001248/0.001248, allocations: 194.7 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.211/2.211, allocations: 390.3 MB / 0.6647 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 63.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5339/0.5351, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.766/1.301, allocations: 379.3 MB / 1.32 GB, free: 17.37 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.04136/1.342, allocations: 44.45 MB / 1.364 GB, free: 16.53 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005714/1.348, allocations: 173.7 kB / 1.364 GB, free: 16.53 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006056/1.354, allocations: 2.81 MB / 1.366 GB, free: 16.47 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01564/1.37, allocations: 7.306 MB / 1.374 GB, free: 16.11 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008433/1.378, allocations: 3.747 MB / 1.377 GB, free: 16 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01198/1.39, allocations: 11.51 MB / 1.388 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007143/1.398, allocations: 5.548 MB / 1.394 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01118/1.409, allocations: 6.345 MB / 1.4 GB, free: 8.266 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005978/1.415, allocations: 3.627 MB / 1.404 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001376/1.416, allocations: 496.3 kB / 1.404 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.011/1.427, allocations: 6.152 MB / 1.41 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002018/1.429, allocations: 1.726 MB / 1.412 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.004255/1.433, allocations: 2.77 MB / 1.415 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01258/1.446, allocations: 9.137 MB / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.446, allocations: 0 / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.272e-06/1.446, allocations: 0 / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002056/1.446, allocations: 0 / 1.423 GB, free: 6.473 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.009718/1.456, allocations: 5.651 MB / 1.429 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/1.456, allocations: 12.03 kB / 1.429 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005044/1.457, allocations: 467.9 kB / 1.429 GB, free: 336 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01094/1.468, allocations: 1.968 MB / 1.431 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006413/1.474, allocations: 3.64 MB / 1.435 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001343/1.475, allocations: 0.5944 MB / 1.435 GB, free: 10.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004714/1.476, allocations: 336 kB / 1.436 GB, free: 9.875 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007518/1.483, allocations: 4.549 MB / 1.44 GB, free: 5.234 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.948e-05/1.483, allocations: 0 / 1.44 GB, free: 5.234 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003005/1.484, allocations: 140 kB / 1.44 GB, free: 5.098 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/1.484, allocations: 137.5 kB / 1.44 GB, free: 4.965 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008047/1.492, allocations: 4.026 MB / 1.444 GB, free: 0.9453 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.02236/1.514, allocations: 19.11 MB / 1.463 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003861/1.518, allocations: 1.848 MB / 1.465 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/1.52, allocations: 0.9646 MB / 1.466 GB, free: 9.965 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000573/1.521, allocations: 411.4 kB / 1.466 GB, free: 9.496 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002312/1.523, allocations: 1.124 MB / 1.467 GB, free: 8.348 MB / 1.061 GB Notification: Performance of pre-optimization done (n=129): time 2.605e-06/1.523, allocations: 0 / 1.467 GB, free: 8.348 MB / 1.061 GB Notification: Performance of matching and sorting (n=129): time 0.007398/1.531, allocations: 2.981 MB / 1.47 GB, free: 5.34 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/1.531, allocations: 145.8 kB / 1.47 GB, free: 5.168 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004009/1.535, allocations: 3.503 MB / 1.474 GB, free: 1.648 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001196/1.535, allocations: 61.53 kB / 1.474 GB, free: 1.586 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001361/1.536, allocations: 2.141 MB / 1.476 GB, free: 15.43 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003353/1.536, allocations: 461.7 kB / 1.476 GB, free: 14.98 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000622/1.537, allocations: 486.4 kB / 1.477 GB, free: 14.5 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.521e-05/1.537, allocations: 305.1 kB / 1.477 GB, free: 14.2 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/1.54, allocations: 1.091 MB / 1.478 GB, free: 13.1 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003191/1.543, allocations: 2.117 MB / 1.48 GB, free: 10.51 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/1.548, allocations: 3.126 MB / 1.483 GB, free: 7.051 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/1.548, allocations: 8 kB / 1.483 GB, free: 7.043 MB / 1.076 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.006789/1.555, allocations: 3.454 MB / 1.487 GB, free: 3.762 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/1.555, allocations: 45.69 kB / 1.487 GB, free: 3.711 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/1.555, allocations: 36.06 kB / 1.487 GB, free: 3.676 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.901e-05/1.555, allocations: 44 kB / 1.487 GB, free: 3.633 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/1.558, allocations: 0.6448 MB / 1.487 GB, free: 3.027 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.263e-05/1.558, allocations: 68.62 kB / 1.488 GB, free: 2.973 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003017/1.561, allocations: 0.4912 MB / 1.488 GB, free: 2.48 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/1.561, allocations: 127.8 kB / 1.488 GB, free: 2.359 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003643/1.565, allocations: 1.996 MB / 1.49 GB, free: 364 kB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00312/1.568, allocations: 2.081 MB / 1.492 GB, free: 13.8 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005175/1.573, allocations: 3.073 MB / 1.495 GB, free: 10.4 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.074e-05/1.573, allocations: 8 kB / 1.495 GB, free: 10.39 MB / 1.092 GB Notification: Performance of matching and sorting (n=288) (initialization_lambda0): time 0.006693/1.58, allocations: 3.397 MB / 1.498 GB, free: 7.164 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/1.58, allocations: 49.69 kB / 1.498 GB, free: 7.109 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.577e-05/1.58, allocations: 28 kB / 1.499 GB, free: 7.082 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.166e-05/1.58, allocations: 51.94 kB / 1.499 GB, free: 7.031 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/1.582, allocations: 0.6375 MB / 1.499 GB, free: 6.434 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.533e-05/1.582, allocations: 63.22 kB / 1.499 GB, free: 6.383 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/1.585, allocations: 427.5 kB / 1.5 GB, free: 5.965 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/1.585, allocations: 120 kB / 1.5 GB, free: 5.848 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (284): * Single equations (assignments): 280 * 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.0003713/1.586, allocations: 353.4 kB / 1.5 GB, free: 5.535 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004028/1.586, allocations: 359.4 kB / 1.5 GB, free: 5.18 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005118/1.591, allocations: 2.388 MB / 1.503 GB, free: 2.766 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/1.591, allocations: 16 kB / 1.503 GB, free: 2.75 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/1.591, allocations: 0 / 1.503 GB, free: 2.75 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004124/1.595, allocations: 2.002 MB / 1.505 GB, free: 0.6602 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009887/1.605, allocations: 6.262 MB / 1.511 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/1.605, allocations: 12.66 kB / 1.511 GB, free: 10.24 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/1.607, allocations: 339.5 kB / 1.511 GB, free: 9.926 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/1.607, allocations: 56.83 kB / 1.511 GB, free: 9.867 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/1.607, allocations: 43.97 kB / 1.511 GB, free: 9.824 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/1.608, allocations: 1.546 MB / 1.513 GB, free: 8.148 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/1.608, allocations: 11.19 kB / 1.513 GB, free: 8.141 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006676/1.615, allocations: 3.396 MB / 1.516 GB, free: 4.617 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008338/1.616, allocations: 0.625 MB / 1.517 GB, free: 3.969 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/1.616, allocations: 40 kB / 1.517 GB, free: 3.93 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00213/1.618, allocations: 199.8 kB / 1.517 GB, free: 3.734 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/1.619, allocations: 120.2 kB / 1.517 GB, free: 3.621 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/1.619, allocations: 63.97 kB / 1.517 GB, free: 3.559 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002977/1.622, allocations: 2.379 MB / 1.519 GB, free: 1.172 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.192e-06/1.622, allocations: 0 / 1.519 GB, free: 1.172 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.003802/1.625, allocations: 2.006 MB / 1.521 GB, free: 15.16 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (127): * Single equations (assignments): 124 * 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.007521/1.633, allocations: 4.333 MB / 1.526 GB, free: 10.73 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.008627/1.642, allocations: 4.191 MB / 1.53 GB, free: 6.738 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.642, allocations: 3.984 kB / 1.53 GB, free: 6.734 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.002339/1.644, allocations: 1.09 MB / 1.531 GB, free: 5.684 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00597/1.65, allocations: 1.745 MB / 1.533 GB, free: 3.973 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0457/1.696, allocations: 32.91 MB / 1.565 GB, free: 15.82 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002392/1.698, allocations: 2.661 MB / 1.567 GB, free: 13.12 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.004315/1.702, allocations: 1.076 MB / 1.568 GB, free: 12.04 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.704, allocations: 1.737 MB / 1.57 GB, free: 10.3 MB / 1.17 GB Notification: Performance of SimCode: time 4.71e-07/1.704, allocations: 0 / 1.57 GB, free: 10.3 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).