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.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.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.001132/0.001132, 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.001178/0.001178, allocations: 193.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.267/1.267, 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.186/2.186, allocations: 390.3 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5408/0.542, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.7504/1.292, allocations: 342.4 MB / 1.284 GB, free: 17.5 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03558/1.328, allocations: 36.56 MB / 1.32 GB, free: 17.26 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004887/1.333, allocations: 139.1 kB / 1.32 GB, free: 17.26 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005267/1.338, allocations: 2.334 MB / 1.322 GB, free: 17.22 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01222/1.351, allocations: 5.772 MB / 1.328 GB, free: 16.96 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006112/1.357, allocations: 3.036 MB / 1.331 GB, free: 16.86 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.008349/1.365, allocations: 8.546 MB / 1.339 GB, free: 16.83 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004482/1.37, allocations: 4.186 MB / 1.343 GB, free: 16.18 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008384/1.378, allocations: 4.904 MB / 1.348 GB, free: 16.04 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003853/1.382, allocations: 2.699 MB / 1.351 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004898/1.382, allocations: 370.3 kB / 1.351 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008438/1.391, allocations: 5.129 MB / 1.356 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00118/1.392, allocations: 1.269 MB / 1.357 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.00242/1.394, allocations: 2.069 MB / 1.359 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009222/1.404, allocations: 7.008 MB / 1.366 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/1.404, allocations: 6.922 kB / 1.366 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.603e-06/1.404, allocations: 0 / 1.366 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.702e-05/1.404, allocations: 0 / 1.366 GB, free: 13.75 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.006491/1.41, allocations: 4.364 MB / 1.37 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/1.41, allocations: 14.69 kB / 1.37 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000356/1.411, allocations: 360.3 kB / 1.371 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007684/1.418, allocations: 1.465 MB / 1.372 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004537/1.423, allocations: 2.747 MB / 1.375 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009705/1.424, allocations: 456.5 kB / 1.375 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000378/1.424, allocations: 254.6 kB / 1.376 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005279/1.43, allocations: 3.392 MB / 1.379 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.336e-05/1.43, allocations: 5.875 kB / 1.379 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/1.43, allocations: 106.8 kB / 1.379 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.232e-05/1.43, allocations: 104.4 kB / 1.379 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005661/1.436, allocations: 3.03 MB / 1.382 GB, free: 4.859 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.01703/1.453, allocations: 14.42 MB / 1.396 GB, free: 7.711 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00331/1.456, allocations: 1.636 MB / 1.398 GB, free: 6.039 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/1.457, allocations: 0.7109 MB / 1.398 GB, free: 5.324 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000351/1.458, allocations: 302.3 kB / 1.399 GB, free: 4.977 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/1.459, allocations: 0.8365 MB / 1.4 GB, free: 4.133 MB / 1.014 GB Notification: Performance of pre-optimization done (n=104): time 2.405e-06/1.459, allocations: 0 / 1.4 GB, free: 4.133 MB / 1.014 GB Notification: Performance of matching and sorting (n=104): time 0.005414/1.465, allocations: 2.22 MB / 1.402 GB, free: 1.895 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/1.465, allocations: 123.2 kB / 1.402 GB, free: 1.75 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003292/1.468, allocations: 2.626 MB / 1.404 GB, free: 15.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001113/1.468, allocations: 53.7 kB / 1.404 GB, free: 15.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001122/1.47, allocations: 1.584 MB / 1.406 GB, free: 13.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/1.47, allocations: 375.2 kB / 1.406 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005125/1.47, allocations: 359.1 kB / 1.407 GB, free: 12.74 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 7.772e-05/1.47, allocations: 305.1 kB / 1.407 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/1.472, allocations: 0.8011 MB / 1.408 GB, free: 11.63 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/1.475, allocations: 1.518 MB / 1.409 GB, free: 9.805 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003792/1.479, allocations: 2.23 MB / 1.411 GB, free: 7.371 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/1.479, allocations: 8 kB / 1.411 GB, free: 7.363 MB / 1.029 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005486/1.484, allocations: 2.538 MB / 1.414 GB, free: 4.934 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/1.484, allocations: 37.7 kB / 1.414 GB, free: 4.891 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/1.484, allocations: 24 kB / 1.414 GB, free: 4.867 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.525e-05/1.484, allocations: 31.94 kB / 1.414 GB, free: 4.836 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/1.486, allocations: 486.7 kB / 1.414 GB, free: 4.387 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.299e-05/1.486, allocations: 49.45 kB / 1.415 GB, free: 4.348 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/1.489, allocations: 390.4 kB / 1.415 GB, free: 3.965 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/1.489, allocations: 93.95 kB / 1.415 GB, free: 3.875 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003029/1.492, allocations: 1.476 MB / 1.416 GB, free: 2.395 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002326/1.494, allocations: 1.498 MB / 1.418 GB, free: 0.582 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003726/1.498, allocations: 2.194 MB / 1.42 GB, free: 14.18 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.478e-06/1.498, allocations: 8 kB / 1.42 GB, free: 14.17 MB / 1.045 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.005126/1.503, allocations: 2.501 MB / 1.422 GB, free: 11.78 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/1.503, allocations: 46.31 kB / 1.423 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/1.503, allocations: 20 kB / 1.423 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/1.503, allocations: 36 kB / 1.423 GB, free: 11.67 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/1.505, allocations: 482.6 kB / 1.423 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.766e-05/1.505, allocations: 42.17 kB / 1.423 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002474/1.508, allocations: 335.3 kB / 1.423 GB, free: 10.87 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/1.508, allocations: 99.97 kB / 1.423 GB, free: 10.77 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * 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 (213): * Single equations (assignments): 210 * 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.0003579/1.508, allocations: 305.4 kB / 1.424 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/1.509, allocations: 280.4 kB / 1.424 GB, free: 10.22 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003766/1.512, allocations: 1.707 MB / 1.426 GB, free: 8.5 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/1.512, allocations: 8 kB / 1.426 GB, free: 8.492 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/1.512, allocations: 0 / 1.426 GB, free: 8.492 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002839/1.515, allocations: 1.34 MB / 1.427 GB, free: 7.121 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007058/1.522, allocations: 4.383 MB / 1.431 GB, free: 2.641 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/1.522, allocations: 4 kB / 1.431 GB, free: 2.637 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/1.524, allocations: 248.9 kB / 1.432 GB, free: 2.406 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001865/1.524, allocations: 48.83 kB / 1.432 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.713e-05/1.524, allocations: 35.98 kB / 1.432 GB, free: 2.32 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/1.525, allocations: 1.537 MB / 1.433 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/1.525, allocations: 18.83 kB / 1.433 GB, free: 0.6367 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/1.53, allocations: 2.516 MB / 1.436 GB, free: 14.03 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/1.53, allocations: 0.5012 MB / 1.436 GB, free: 13.51 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002928/1.531, allocations: 31.98 kB / 1.436 GB, free: 13.48 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/1.532, allocations: 143.9 kB / 1.436 GB, free: 13.34 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/1.533, allocations: 84.06 kB / 1.436 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.54e-05/1.533, allocations: 51.97 kB / 1.436 GB, free: 13.21 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002385/1.535, allocations: 1.795 MB / 1.438 GB, free: 11.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.9e-07/1.535, allocations: 0 / 1.438 GB, free: 11.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.003167/1.538, allocations: 1.531 MB / 1.44 GB, free: 9.879 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (103): * Single equations (assignments): 100 * 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.00598/1.544, allocations: 3.42 MB / 1.443 GB, free: 6.406 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.006699/1.551, allocations: 3.116 MB / 1.446 GB, free: 3.414 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.551, allocations: 0 / 1.446 GB, free: 3.414 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001704/1.553, allocations: 0.8338 MB / 1.447 GB, free: 2.605 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005042/1.558, allocations: 1.313 MB / 1.448 GB, free: 1.32 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0327/1.59, allocations: 23.31 MB / 1.471 GB, free: 8.117 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/1.592, allocations: 2.123 MB / 1.473 GB, free: 5.957 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.003221/1.595, allocations: 0.7797 MB / 1.474 GB, free: 5.172 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/1.597, allocations: 1.257 MB / 1.475 GB, free: 3.914 MB / 1.092 GB Notification: Performance of SimCode: time 8.11e-07/1.597, allocations: 0 / 1.475 GB, free: 3.914 MB / 1.092 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).