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.001609/0.001609, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001831/0.001831, allocations: 192.5 kB / 16.25 MB, free: 6.629 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.638/1.638, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.212/2.212, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 67.88 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4608/0.462, allocations: 140.4 MB / 0.9492 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.7219/1.184, allocations: 338.6 MB / 1.28 GB, free: 17.35 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03476/1.219, allocations: 36.27 MB / 1.315 GB, free: 17.13 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003792/1.223, allocations: 124.2 kB / 1.315 GB, free: 17.13 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004719/1.227, allocations: 2.08 MB / 1.317 GB, free: 17.09 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0111/1.238, allocations: 5.42 MB / 1.323 GB, free: 16.85 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005773/1.244, allocations: 2.791 MB / 1.325 GB, free: 16.75 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.007862/1.252, allocations: 8.561 MB / 1.334 GB, free: 16.72 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004117/1.256, allocations: 4.137 MB / 1.338 GB, free: 16.07 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007531/1.264, allocations: 4.93 MB / 1.343 GB, free: 16 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003493/1.267, allocations: 2.861 MB / 1.345 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003874/1.268, allocations: 376.6 kB / 1.346 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007062/1.275, allocations: 5.377 MB / 1.351 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008805/1.276, allocations: 1.275 MB / 1.352 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001616/1.277, allocations: 2.081 MB / 1.354 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006732/1.284, allocations: 7.354 MB / 1.362 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/1.284, allocations: 6.531 kB / 1.362 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.312e-06/1.284, allocations: 0 / 1.362 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.041e-05/1.284, allocations: 0 / 1.362 GB, free: 13.91 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.005781/1.29, allocations: 4.358 MB / 1.366 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/1.29, allocations: 10.12 kB / 1.366 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003577/1.29, allocations: 360 kB / 1.366 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007788/1.298, allocations: 1.467 MB / 1.368 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/1.302, allocations: 2.76 MB / 1.37 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008991/1.303, allocations: 449.4 kB / 1.371 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003145/1.303, allocations: 262.4 kB / 1.371 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005127/1.309, allocations: 3.392 MB / 1.374 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/1.309, allocations: 4.5 kB / 1.374 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002362/1.309, allocations: 102.3 kB / 1.374 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.251e-05/1.309, allocations: 104.6 kB / 1.375 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005442/1.314, allocations: 3.051 MB / 1.377 GB, free: 7.016 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.01581/1.33, allocations: 14.1 MB / 1.391 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003256/1.333, allocations: 1.658 MB / 1.393 GB, free: 9.355 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/1.335, allocations: 0.7187 MB / 1.394 GB, free: 8.637 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003593/1.335, allocations: 304.2 kB / 1.394 GB, free: 8.289 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001693/1.337, allocations: 0.8558 MB / 1.395 GB, free: 7.422 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006838/1.338, allocations: 110.6 kB / 1.395 GB, free: 7.312 MB / 1.014 GB Notification: Performance of pre-optimization done (n=106): time 2.445e-06/1.338, allocations: 0 / 1.395 GB, free: 7.312 MB / 1.014 GB Notification: Performance of matching and sorting (n=106): time 0.005116/1.343, allocations: 2.228 MB / 1.397 GB, free: 5.082 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/1.343, allocations: 115.8 kB / 1.397 GB, free: 4.941 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/1.346, allocations: 2.509 MB / 1.4 GB, free: 2.418 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001109/1.346, allocations: 49.7 kB / 1.4 GB, free: 2.363 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001086/1.347, allocations: 1.596 MB / 1.401 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/1.347, allocations: 375.6 kB / 1.402 GB, free: 404 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00052/1.348, allocations: 371.5 kB / 1.402 GB, free: 28 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.613e-05/1.348, allocations: 310.6 kB / 1.402 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/1.35, allocations: 0.805 MB / 1.403 GB, free: 14.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002347/1.352, allocations: 1.517 MB / 1.404 GB, free: 13.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003759/1.356, allocations: 2.231 MB / 1.407 GB, free: 10.64 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/1.356, allocations: 8 kB / 1.407 GB, free: 10.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004999/1.361, allocations: 2.547 MB / 1.409 GB, free: 8.207 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/1.361, allocations: 37.7 kB / 1.409 GB, free: 8.164 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/1.361, allocations: 20 kB / 1.409 GB, free: 8.145 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.315e-05/1.361, allocations: 32 kB / 1.409 GB, free: 8.113 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/1.363, allocations: 492.8 kB / 1.41 GB, free: 7.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.863e-05/1.363, allocations: 40.89 kB / 1.41 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002843/1.366, allocations: 475.6 kB / 1.41 GB, free: 7.164 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/1.366, allocations: 95.95 kB / 1.41 GB, free: 7.07 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002818/1.369, allocations: 1.484 MB / 1.412 GB, free: 5.582 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00231/1.371, allocations: 1.504 MB / 1.413 GB, free: 3.773 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003687/1.375, allocations: 2.198 MB / 1.415 GB, free: 1.359 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.116e-05/1.375, allocations: 8 kB / 1.415 GB, free: 1.352 MB / 1.029 GB Notification: Performance of matching and sorting (n=218) (initialization_lambda0): time 0.004974/1.38, allocations: 2.513 MB / 1.418 GB, free: 14.95 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/1.38, allocations: 46.78 kB / 1.418 GB, free: 14.9 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.301e-05/1.38, allocations: 20 kB / 1.418 GB, free: 14.88 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/1.38, allocations: 32 kB / 1.418 GB, free: 14.85 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/1.382, allocations: 484.4 kB / 1.418 GB, free: 14.4 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.282e-05/1.382, allocations: 42.77 kB / 1.418 GB, free: 14.37 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/1.385, allocations: 427.9 kB / 1.419 GB, free: 13.95 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/1.385, allocations: 95.97 kB / 1.419 GB, free: 13.86 MB / 1.045 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.0003503/1.385, allocations: 303.7 kB / 1.419 GB, free: 13.59 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000335/1.386, allocations: 264.7 kB / 1.419 GB, free: 13.32 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/1.389, allocations: 1.728 MB / 1.421 GB, free: 11.59 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/1.389, allocations: 12 kB / 1.421 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.389, allocations: 0 / 1.421 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002786/1.392, allocations: 1.351 MB / 1.422 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007429/1.399, allocations: 4.415 MB / 1.427 GB, free: 5.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/1.399, allocations: 8 kB / 1.427 GB, free: 5.672 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/1.401, allocations: 254 kB / 1.427 GB, free: 5.438 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/1.401, allocations: 56.77 kB / 1.427 GB, free: 5.379 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.993e-05/1.401, allocations: 31.98 kB / 1.427 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/1.402, allocations: 1.536 MB / 1.429 GB, free: 3.68 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.402, allocations: 10.81 kB / 1.429 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/1.407, allocations: 2.553 MB / 1.431 GB, free: 1.031 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007977/1.408, allocations: 485.5 kB / 1.432 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/1.408, allocations: 27.98 kB / 1.432 GB, free: 0.5078 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/1.41, allocations: 251.6 kB / 1.432 GB, free: 268 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/1.41, allocations: 84.62 kB / 1.432 GB, free: 188 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/1.41, allocations: 51.97 kB / 1.432 GB, free: 136 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002758/1.413, allocations: 1.711 MB / 1.434 GB, free: 14.42 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.11e-07/1.413, allocations: 4 kB / 1.434 GB, free: 14.42 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.00409/1.417, allocations: 1.569 MB / 1.435 GB, free: 12.84 MB / 1.061 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.005986/1.423, allocations: 3.442 MB / 1.438 GB, free: 9.344 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.006815/1.43, allocations: 3.148 MB / 1.442 GB, free: 6.328 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/1.43, allocations: 4.062 kB / 1.442 GB, free: 6.324 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001741/1.432, allocations: 0.8382 MB / 1.442 GB, free: 5.504 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004689/1.437, allocations: 1.253 MB / 1.444 GB, free: 4.273 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04054/1.477, allocations: 23.91 MB / 1.467 GB, free: 10.49 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001798/1.479, allocations: 2.122 MB / 1.469 GB, free: 8.336 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.003251/1.482, allocations: 0.7713 MB / 1.47 GB, free: 7.559 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/1.484, allocations: 1.273 MB / 1.471 GB, free: 6.285 MB / 1.092 GB Notification: Performance of SimCode: time 5.31e-07/1.484, allocations: 0 / 1.471 GB, free: 6.285 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).