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.001685/0.001685, allocations: 108 kB / 15.61 MB, free: 152 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.002021/0.002021, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.337/2.337, allocations: 390.3 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001404, allocations: 59.91 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5837/0.5851, 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.7724/1.358, allocations: 342.4 MB / 1.284 GB, free: 17.52 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03707/1.395, allocations: 36.56 MB / 1.32 GB, free: 17.28 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004582/1.399, allocations: 142 kB / 1.32 GB, free: 17.28 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005339/1.405, allocations: 2.33 MB / 1.322 GB, free: 17.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01323/1.418, allocations: 5.784 MB / 1.328 GB, free: 16.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006926/1.425, allocations: 3.019 MB / 1.331 GB, free: 16.89 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009856/1.435, allocations: 8.552 MB / 1.339 GB, free: 16.86 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005269/1.44, allocations: 4.181 MB / 1.343 GB, free: 16.21 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009399/1.449, allocations: 4.903 MB / 1.348 GB, free: 16.07 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004807/1.454, allocations: 2.7 MB / 1.351 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007154/1.455, allocations: 371.5 kB / 1.351 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009304/1.464, allocations: 5.136 MB / 1.356 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001362/1.466, allocations: 1.264 MB / 1.357 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002687/1.468, allocations: 2.072 MB / 1.359 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009467/1.478, allocations: 7.006 MB / 1.366 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.478, allocations: 0 / 1.366 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.583e-06/1.478, allocations: 0 / 1.366 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.859e-05/1.478, allocations: 2.938 kB / 1.366 GB, free: 13.78 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.007691/1.486, allocations: 4.362 MB / 1.37 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/1.486, allocations: 9.688 kB / 1.37 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004899/1.486, allocations: 366.8 kB / 1.371 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008783/1.495, allocations: 1.462 MB / 1.372 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005019/1.5, allocations: 2.755 MB / 1.375 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001045/1.501, allocations: 449.7 kB / 1.375 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000349/1.502, allocations: 262.2 kB / 1.376 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005738/1.507, allocations: 3.39 MB / 1.379 GB, free: 6.445 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/1.507, allocations: 6.562 kB / 1.379 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002474/1.508, allocations: 107.5 kB / 1.379 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-05/1.508, allocations: 104.2 kB / 1.379 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006339/1.514, allocations: 3.024 MB / 1.382 GB, free: 4.867 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.01888/1.533, allocations: 14.42 MB / 1.396 GB, free: 7.727 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003773/1.537, allocations: 1.63 MB / 1.398 GB, free: 6.062 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/1.538, allocations: 0.7187 MB / 1.398 GB, free: 5.34 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003846/1.539, allocations: 297.4 kB / 1.399 GB, free: 5 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001908/1.541, allocations: 0.8449 MB / 1.4 GB, free: 4.145 MB / 1.014 GB Notification: Performance of pre-optimization done (n=104): time 2.725e-06/1.541, allocations: 0 / 1.4 GB, free: 4.145 MB / 1.014 GB Notification: Performance of matching and sorting (n=104): time 0.006168/1.547, allocations: 2.22 MB / 1.402 GB, free: 1.906 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/1.547, allocations: 115.8 kB / 1.402 GB, free: 1.766 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/1.551, allocations: 2.635 MB / 1.404 GB, free: 15.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001433/1.551, allocations: 49.7 kB / 1.404 GB, free: 15.07 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001317/1.553, allocations: 1.586 MB / 1.406 GB, free: 13.48 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003588/1.553, allocations: 371.6 kB / 1.406 GB, free: 13.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005912/1.554, allocations: 367.1 kB / 1.407 GB, free: 12.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 7.86e-05/1.554, allocations: 309.1 kB / 1.407 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/1.556, allocations: 0.8049 MB / 1.408 GB, free: 11.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/1.559, allocations: 1.513 MB / 1.409 GB, free: 9.812 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004405/1.563, allocations: 2.229 MB / 1.411 GB, free: 7.379 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/1.563, allocations: 8 kB / 1.411 GB, free: 7.371 MB / 1.029 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006106/1.569, allocations: 2.53 MB / 1.414 GB, free: 4.949 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.778e-05/1.569, allocations: 45.7 kB / 1.414 GB, free: 4.898 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/1.569, allocations: 20 kB / 1.414 GB, free: 4.879 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.057e-05/1.569, allocations: 35.94 kB / 1.414 GB, free: 4.844 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/1.572, allocations: 488.3 kB / 1.414 GB, free: 4.395 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.264e-05/1.572, allocations: 40.89 kB / 1.415 GB, free: 4.363 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/1.575, allocations: 390.4 kB / 1.415 GB, free: 3.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/1.575, allocations: 91.97 kB / 1.415 GB, free: 3.891 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003367/1.578, allocations: 1.48 MB / 1.416 GB, free: 2.406 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002704/1.581, allocations: 1.494 MB / 1.418 GB, free: 0.5977 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004341/1.585, allocations: 2.196 MB / 1.42 GB, free: 14.2 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.399e-05/1.585, allocations: 4 kB / 1.42 GB, free: 14.19 MB / 1.045 GB Notification: Performance of matching and sorting (n=216) (initialization_lambda0): time 0.006037/1.591, allocations: 2.508 MB / 1.422 GB, free: 11.79 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/1.591, allocations: 41.83 kB / 1.423 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/1.591, allocations: 26.44 kB / 1.423 GB, free: 11.72 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/1.592, allocations: 28 kB / 1.423 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/1.594, allocations: 482.7 kB / 1.423 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.273e-05/1.594, allocations: 57.92 kB / 1.423 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/1.597, allocations: 335.3 kB / 1.423 GB, free: 10.88 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/1.597, allocations: 91.97 kB / 1.424 GB, free: 10.79 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.0004041/1.597, allocations: 300.5 kB / 1.424 GB, free: 10.51 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000534/1.598, allocations: 272.5 kB / 1.424 GB, free: 10.24 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004308/1.602, allocations: 1.709 MB / 1.426 GB, free: 8.523 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/1.602, allocations: 12 kB / 1.426 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/1.602, allocations: 0 / 1.426 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003265/1.606, allocations: 1.344 MB / 1.427 GB, free: 7.137 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008803/1.614, allocations: 4.374 MB / 1.431 GB, free: 2.664 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/1.614, allocations: 8 kB / 1.431 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/1.616, allocations: 246.8 kB / 1.432 GB, free: 2.426 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002122/1.616, allocations: 52.81 kB / 1.432 GB, free: 2.371 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.494e-05/1.616, allocations: 31.98 kB / 1.432 GB, free: 2.34 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/1.617, allocations: 1.536 MB / 1.433 GB, free: 0.6719 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.076e-06/1.617, allocations: 15.03 kB / 1.433 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005519/1.623, allocations: 2.513 MB / 1.436 GB, free: 14.05 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009418/1.624, allocations: 0.505 MB / 1.436 GB, free: 13.53 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004575/1.624, allocations: 27.98 kB / 1.436 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.626, allocations: 147.9 kB / 1.436 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/1.627, allocations: 91.06 kB / 1.436 GB, free: 13.27 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/1.627, allocations: 55.84 kB / 1.436 GB, free: 13.22 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.003119/1.63, allocations: 1.795 MB / 1.438 GB, free: 11.43 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.6e-07/1.63, allocations: 0 / 1.438 GB, free: 11.43 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004045/1.634, allocations: 1.531 MB / 1.44 GB, free: 9.891 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.006593/1.64, allocations: 3.415 MB / 1.443 GB, free: 6.426 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0077/1.648, allocations: 3.115 MB / 1.446 GB, free: 3.434 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.648, allocations: 6.531 kB / 1.446 GB, free: 3.43 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001932/1.65, allocations: 0.8349 MB / 1.447 GB, free: 2.617 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005604/1.656, allocations: 1.307 MB / 1.448 GB, free: 1.34 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03826/1.694, allocations: 23.31 MB / 1.471 GB, free: 8.129 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001921/1.696, allocations: 2.126 MB / 1.473 GB, free: 5.965 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.003618/1.7, allocations: 0.7758 MB / 1.474 GB, free: 5.184 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/1.701, allocations: 1.257 MB / 1.475 GB, free: 3.926 MB / 1.092 GB Notification: Performance of SimCode: time 5.61e-07/1.701, allocations: 0 / 1.475 GB, free: 3.926 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).