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.00131/0.00131, 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.001317/0.001317, allocations: 192.8 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.354/2.354, allocations: 390.2 MB / 0.6647 GB, free: 292 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 71.88 kB / 0.8126 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5488/0.5502, allocations: 140.4 MB / 0.9497 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.8061/1.356, allocations: 379.3 MB / 1.32 GB, free: 17.34 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.04417/1.401, allocations: 44.46 MB / 1.364 GB, free: 16.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006566/1.407, allocations: 173.1 kB / 1.364 GB, free: 16.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.007091/1.414, allocations: 2.805 MB / 1.366 GB, free: 16.44 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01609/1.43, allocations: 7.308 MB / 1.374 GB, free: 16.08 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008034/1.438, allocations: 3.748 MB / 1.377 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01167/1.45, allocations: 11.51 MB / 1.388 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005697/1.456, allocations: 5.553 MB / 1.394 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01061/1.466, allocations: 6.338 MB / 1.4 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005227/1.472, allocations: 3.627 MB / 1.404 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007879/1.473, allocations: 496.1 kB / 1.404 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01054/1.483, allocations: 6.155 MB / 1.41 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001297/1.484, allocations: 1.716 MB / 1.412 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002986/1.487, allocations: 2.776 MB / 1.415 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01107/1.498, allocations: 9.142 MB / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/1.498, allocations: 0 / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.403e-06/1.498, allocations: 0 / 1.423 GB, free: 6.473 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.076e-05/1.499, 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.008997/1.508, allocations: 5.643 MB / 1.429 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/1.508, allocations: 8.031 kB / 1.429 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005362/1.508, allocations: 474.8 kB / 1.429 GB, free: 340 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/1.52, allocations: 1.967 MB / 1.431 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006722/1.527, allocations: 3.644 MB / 1.435 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001509/1.528, allocations: 0.5871 MB / 1.435 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000494/1.529, allocations: 343 kB / 1.436 GB, free: 9.875 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008538/1.538, allocations: 4.538 MB / 1.44 GB, free: 5.242 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.218e-05/1.538, allocations: 7.281 kB / 1.44 GB, free: 5.238 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003505/1.538, allocations: 139.4 kB / 1.44 GB, free: 5.105 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/1.538, allocations: 138.5 kB / 1.44 GB, free: 4.969 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009517/1.548, allocations: 4.028 MB / 1.444 GB, free: 0.9492 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.0264/1.574, allocations: 19.1 MB / 1.463 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004451/1.578, allocations: 1.851 MB / 1.465 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002358/1.581, allocations: 0.9567 MB / 1.466 GB, free: 9.973 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000645/1.582, allocations: 412.3 kB / 1.466 GB, free: 9.504 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002679/1.584, allocations: 1.131 MB / 1.467 GB, free: 8.352 MB / 1.061 GB Notification: Performance of pre-optimization done (n=129): time 2.906e-06/1.584, allocations: 0 / 1.467 GB, free: 8.352 MB / 1.061 GB Notification: Performance of matching and sorting (n=129): time 0.008655/1.593, allocations: 2.977 MB / 1.47 GB, free: 5.348 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/1.593, allocations: 145.8 kB / 1.47 GB, free: 5.176 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/1.599, allocations: 3.503 MB / 1.474 GB, free: 1.656 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001832/1.599, allocations: 57.7 kB / 1.474 GB, free: 1.594 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001906/1.601, allocations: 2.143 MB / 1.476 GB, free: 15.44 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004382/1.601, allocations: 467 kB / 1.476 GB, free: 14.99 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007419/1.602, allocations: 490.2 kB / 1.477 GB, free: 14.5 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.905e-05/1.602, allocations: 301.1 kB / 1.477 GB, free: 14.21 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003041/1.605, allocations: 1.091 MB / 1.478 GB, free: 13.11 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003674/1.609, allocations: 2.116 MB / 1.48 GB, free: 10.52 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00615/1.615, allocations: 3.123 MB / 1.483 GB, free: 7.062 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/1.615, allocations: 12 kB / 1.483 GB, free: 7.051 MB / 1.076 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.008238/1.623, allocations: 3.455 MB / 1.487 GB, free: 3.77 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.995e-05/1.623, allocations: 47.73 kB / 1.487 GB, free: 3.719 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.327e-05/1.623, allocations: 36.06 kB / 1.487 GB, free: 3.684 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.327e-05/1.623, allocations: 47.98 kB / 1.487 GB, free: 3.637 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/1.626, allocations: 0.6376 MB / 1.487 GB, free: 3.035 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.83e-05/1.626, allocations: 67.34 kB / 1.488 GB, free: 2.984 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/1.63, allocations: 0.5022 MB / 1.488 GB, free: 2.48 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002192/1.63, allocations: 128 kB / 1.488 GB, free: 2.355 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004412/1.635, allocations: 1.994 MB / 1.49 GB, free: 364 kB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003599/1.638, allocations: 2.088 MB / 1.492 GB, free: 13.79 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005971/1.644, allocations: 3.064 MB / 1.495 GB, free: 10.4 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.104e-05/1.644, allocations: 12 kB / 1.495 GB, free: 10.39 MB / 1.092 GB Notification: Performance of matching and sorting (n=288) (initialization_lambda0): time 0.008059/1.652, allocations: 3.39 MB / 1.498 GB, free: 7.168 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/1.652, allocations: 49.7 kB / 1.498 GB, free: 7.113 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.071e-05/1.653, allocations: 32 kB / 1.499 GB, free: 7.082 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.091e-05/1.653, allocations: 44 kB / 1.499 GB, free: 7.039 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002773/1.655, allocations: 0.6425 MB / 1.499 GB, free: 6.438 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.647e-05/1.655, allocations: 69 kB / 1.499 GB, free: 6.383 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003757/1.659, allocations: 419.5 kB / 1.5 GB, free: 5.973 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/1.659, allocations: 128 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.000513/1.66, allocations: 347.4 kB / 1.5 GB, free: 5.539 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006607/1.661, allocations: 359.4 kB / 1.5 GB, free: 5.184 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006016/1.667, allocations: 2.382 MB / 1.503 GB, free: 2.777 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/1.667, allocations: 12 kB / 1.503 GB, free: 2.766 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.667, allocations: 0 / 1.503 GB, free: 2.766 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004696/1.671, allocations: 2.009 MB / 1.505 GB, free: 0.668 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/1.684, allocations: 6.268 MB / 1.511 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/1.684, allocations: 8.688 kB / 1.511 GB, free: 10.25 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/1.686, allocations: 336.6 kB / 1.511 GB, free: 9.93 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/1.686, allocations: 58.7 kB / 1.511 GB, free: 9.871 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/1.686, allocations: 39.98 kB / 1.511 GB, free: 9.832 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/1.687, allocations: 1.553 MB / 1.513 GB, free: 8.145 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/1.687, allocations: 14.72 kB / 1.513 GB, free: 8.133 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007894/1.695, allocations: 3.398 MB / 1.516 GB, free: 4.609 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/1.697, allocations: 0.6172 MB / 1.517 GB, free: 3.969 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006504/1.697, allocations: 35.98 kB / 1.517 GB, free: 3.934 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002768/1.7, allocations: 203.8 kB / 1.517 GB, free: 3.734 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/1.7, allocations: 110.1 kB / 1.517 GB, free: 3.633 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/1.7, allocations: 71.89 kB / 1.517 GB, free: 3.562 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.004292/1.705, allocations: 2.379 MB / 1.519 GB, free: 1.176 MB / 1.107 GB Notification: Performance of sort global known variables: time 2e-07/1.705, allocations: 3.938 kB / 1.519 GB, free: 1.172 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.005314/1.71, allocations: 2.004 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.009591/1.72, allocations: 4.329 MB / 1.526 GB, free: 10.74 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.01559/1.735, allocations: 4.192 MB / 1.53 GB, free: 6.746 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/1.735, allocations: 7.984 kB / 1.53 GB, free: 6.738 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.004352/1.74, allocations: 1.089 MB / 1.531 GB, free: 5.688 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009861/1.75, allocations: 1.74 MB / 1.533 GB, free: 3.98 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05627/1.806, allocations: 32.91 MB / 1.565 GB, free: 15.84 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00287/1.809, allocations: 2.661 MB / 1.567 GB, free: 13.14 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.004969/1.814, allocations: 1.076 MB / 1.568 GB, free: 12.06 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002242/1.816, allocations: 1.733 MB / 1.57 GB, free: 10.33 MB / 1.17 GB Notification: Performance of SimCode: time 4.51e-07/1.816, allocations: 0 / 1.57 GB, free: 10.33 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).