Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.ThermalZoneHVACNoExhaust,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",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.0008898/0.0008898, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005659/0.005659, allocations: 173.1 kB / 16.26 MB, free: 6.613 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.266/1.266, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.193/2.193, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003016, allocations: 11.98 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5613/0.5616, allocations: 142.4 MB / 0.9552 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.7697/1.331, allocations: 335.8 MB / 1.283 GB, free: 17.85 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03521/1.367, allocations: 36.35 MB / 1.319 GB, free: 17.43 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004713/1.371, allocations: 119.2 kB / 1.319 GB, free: 17.43 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005375/1.377, allocations: 1.98 MB / 1.321 GB, free: 17.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01333/1.39, allocations: 5.411 MB / 1.326 GB, free: 17.11 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006795/1.397, allocations: 2.737 MB / 1.329 GB, free: 17.01 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01186/1.409, allocations: 11.37 MB / 1.34 GB, free: 16.99 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005008/1.414, allocations: 3.438 MB / 1.343 GB, free: 16.38 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009119/1.423, allocations: 4.187 MB / 1.347 GB, free: 16.3 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005722/1.429, allocations: 2.545 MB / 1.35 GB, free: 16.28 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008516/1.43, allocations: 123 kB / 1.35 GB, free: 16.28 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01079/1.44, allocations: 5.711 MB / 1.355 GB, free: 16.22 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001943/1.442, allocations: 0.9799 MB / 1.356 GB, free: 16.21 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002955/1.445, allocations: 1.767 MB / 1.358 GB, free: 16.1 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0103/1.456, allocations: 7.035 MB / 1.365 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/1.456, allocations: 0 / 1.365 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.743e-06/1.456, allocations: 0 / 1.365 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001156/1.456, allocations: 0 / 1.365 GB, free: 12.86 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 645 * Number of variables: 645 Notification: Performance of Generate backend data structure: time 0.006479/1.462, allocations: 3.658 MB / 1.368 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/1.462, allocations: 12.12 kB / 1.368 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006508/1.463, allocations: 358.7 kB / 1.369 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008325/1.471, allocations: 1.56 MB / 1.37 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00524/1.477, allocations: 2.772 MB / 1.373 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009692/1.478, allocations: 480.1 kB / 1.373 GB, free: 8.414 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004848/1.478, allocations: 263.7 kB / 1.374 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005807/1.484, allocations: 3.426 MB / 1.377 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/1.484, allocations: 2.062 kB / 1.377 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/1.484, allocations: 102.8 kB / 1.377 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.892e-05/1.484, allocations: 102.5 kB / 1.377 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006071/1.49, allocations: 3.119 MB / 1.38 GB, free: 6.852 MB / 0.9981 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.01785/1.508, allocations: 14.18 MB / 1.394 GB, free: 13.48 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003285/1.512, allocations: 1.658 MB / 1.396 GB, free: 12.57 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/1.513, allocations: 0.7278 MB / 1.396 GB, free: 12.23 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003646/1.513, allocations: 307.1 kB / 1.397 GB, free: 11.92 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001719/1.515, allocations: 0.8543 MB / 1.398 GB, free: 11.43 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009817/1.516, allocations: 108.3 kB / 1.398 GB, free: 11.35 MB / 1.014 GB Notification: Performance of pre-optimization done (n=106): time 2.345e-06/1.516, allocations: 0 / 1.398 GB, free: 11.35 MB / 1.014 GB Notification: Performance of matching and sorting (n=106): time 0.005339/1.521, allocations: 2.245 MB / 1.4 GB, free: 9.621 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/1.522, allocations: 119.8 kB / 1.4 GB, free: 9.48 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003479/1.525, allocations: 2.513 MB / 1.402 GB, free: 6.953 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/1.525, allocations: 53.7 kB / 1.403 GB, free: 6.895 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001272/1.526, allocations: 1.597 MB / 1.404 GB, free: 5.289 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/1.527, allocations: 378 kB / 1.404 GB, free: 4.922 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/1.527, allocations: 149.6 kB / 1.405 GB, free: 4.77 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.154e-05/1.527, allocations: 301.1 kB / 1.405 GB, free: 4.473 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/1.529, allocations: 0.8003 MB / 1.406 GB, free: 3.672 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00249/1.532, allocations: 1.522 MB / 1.407 GB, free: 1.84 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004003/1.536, allocations: 2.242 MB / 1.409 GB, free: 15.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/1.536, allocations: 4 kB / 1.409 GB, free: 15.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005523/1.541, allocations: 2.556 MB / 1.412 GB, free: 12.95 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004442/1.542, allocations: 0.7334 MB / 1.413 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/1.542, allocations: 23.94 kB / 1.413 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.569e-05/1.542, allocations: 31.94 kB / 1.413 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/1.544, allocations: 490.3 kB / 1.413 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-05/1.544, allocations: 45.17 kB / 1.413 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003263/1.547, allocations: 479.6 kB / 1.414 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/1.547, allocations: 91.97 kB / 1.414 GB, free: 10.83 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/1.547, allocations: 4 kB / 1.414 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004879/1.552, allocations: 2.268 MB / 1.416 GB, free: 8.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/1.552, allocations: 20 kB / 1.416 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/1.552, allocations: 32.44 kB / 1.416 GB, free: 8.629 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/1.554, allocations: 484.9 kB / 1.416 GB, free: 8.184 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.077e-05/1.554, allocations: 43.48 kB / 1.416 GB, free: 8.148 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/1.557, allocations: 392 kB / 1.417 GB, free: 7.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/1.557, allocations: 95.97 kB / 1.417 GB, free: 7.672 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 94 * 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 (215): * Single equations (assignments): 212 * Array equations: 2 * 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.001474/1.559, allocations: 0.8866 MB / 1.418 GB, free: 6.805 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/1.559, allocations: 268.6 kB / 1.418 GB, free: 6.539 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003804/1.563, allocations: 1.748 MB / 1.42 GB, free: 4.773 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/1.563, allocations: 11.94 kB / 1.42 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/1.563, allocations: 0 / 1.42 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002955/1.566, allocations: 1.367 MB / 1.421 GB, free: 3.367 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008192/1.574, allocations: 4.52 MB / 1.425 GB, free: 14.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/1.574, allocations: 8 kB / 1.425 GB, free: 14.73 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/1.575, allocations: 256 kB / 1.426 GB, free: 14.49 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001899/1.575, allocations: 55.64 kB / 1.426 GB, free: 14.43 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.69e-05/1.576, allocations: 35.92 kB / 1.426 GB, free: 14.4 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/1.577, allocations: 1.433 MB / 1.427 GB, free: 12.84 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/1.577, allocations: 11.09 kB / 1.427 GB, free: 12.83 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/1.582, allocations: 2.565 MB / 1.43 GB, free: 10.17 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008819/1.582, allocations: 493.6 kB / 1.43 GB, free: 9.664 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/1.583, allocations: 24 kB / 1.43 GB, free: 9.641 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002032/1.585, allocations: 263.5 kB / 1.43 GB, free: 9.383 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/1.585, allocations: 89.78 kB / 1.431 GB, free: 9.301 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.555e-05/1.585, allocations: 47.97 kB / 1.431 GB, free: 9.254 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002473/1.588, allocations: 1.715 MB / 1.432 GB, free: 7.539 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.9e-07/1.588, allocations: 0 / 1.432 GB, free: 7.539 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003822/1.591, allocations: 1.562 MB / 1.434 GB, free: 5.973 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (105): * Single equations (assignments): 102 * 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.005876/1.597, allocations: 3.463 MB / 1.437 GB, free: 2.453 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.006464/1.604, allocations: 3.019 MB / 1.44 GB, free: 15.56 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/1.604, allocations: 3.906 kB / 1.44 GB, free: 15.56 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001752/1.606, allocations: 0.8491 MB / 1.441 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007507/1.613, allocations: 1.209 MB / 1.442 GB, free: 13.53 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04078/1.654, allocations: 24 MB / 1.466 GB, free: 3.652 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001555/1.655, allocations: 2.134 MB / 1.468 GB, free: 1.488 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.003234/1.659, allocations: 0.7636 MB / 1.468 GB, free: 0.7188 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001587/1.66, allocations: 1.277 MB / 1.47 GB, free: 15.49 MB / 1.092 GB Notification: Performance of SimCode: time 8.72e-07/1.66, allocations: 4 kB / 1.47 GB, free: 15.49 MB / 1.092 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).