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.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.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.0008644/0.0008644, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005348/0.005348, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.32 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.196/2.196, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003068, allocations: 11.98 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5909/0.5912, allocations: 142.4 MB / 0.9552 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.7987/1.39, allocations: 372.1 MB / 1.319 GB, free: 17.59 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.04309/1.433, allocations: 44.2 MB / 1.362 GB, free: 16.75 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006351/1.44, allocations: 149.5 kB / 1.362 GB, free: 16.75 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006392/1.446, allocations: 2.371 MB / 1.364 GB, free: 16.69 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01596/1.462, allocations: 6.845 MB / 1.371 GB, free: 16.34 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007826/1.47, allocations: 3.412 MB / 1.374 GB, free: 16.22 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01439/1.484, allocations: 15.42 MB / 1.389 GB, free: 14.65 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006144/1.49, allocations: 4.553 MB / 1.394 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01081/1.501, allocations: 5.386 MB / 1.399 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006511/1.508, allocations: 3.398 MB / 1.402 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007713/1.508, allocations: 166.8 kB / 1.402 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0106/1.519, allocations: 6.832 MB / 1.409 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001625/1.521, allocations: 1.344 MB / 1.41 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003008/1.524, allocations: 2.354 MB / 1.413 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01118/1.535, allocations: 9.158 MB / 1.422 GB, free: 13.46 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/1.535, allocations: 4 kB / 1.422 GB, free: 13.46 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.373e-06/1.535, allocations: 0 / 1.422 GB, free: 13.46 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001142/1.535, allocations: 0 / 1.422 GB, free: 13.46 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.008003/1.543, allocations: 4.694 MB / 1.426 GB, free: 8.734 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/1.543, allocations: 16.02 kB / 1.426 GB, free: 8.719 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006317/1.544, allocations: 471.9 kB / 1.427 GB, free: 8.246 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/1.555, allocations: 2.084 MB / 1.429 GB, free: 6.16 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007262/1.562, allocations: 3.681 MB / 1.432 GB, free: 2.496 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001412/1.564, allocations: 0.626 MB / 1.433 GB, free: 1.848 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006053/1.564, allocations: 340 kB / 1.433 GB, free: 1.516 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008171/1.572, allocations: 4.591 MB / 1.438 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.983e-05/1.573, allocations: 11.94 kB / 1.438 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/1.573, allocations: 135.8 kB / 1.438 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.573, allocations: 138.5 kB / 1.438 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008603/1.582, allocations: 4.152 MB / 1.442 GB, free: 8.395 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.0244/1.606, allocations: 18.72 MB / 1.46 GB, free: 4.477 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003994/1.61, allocations: 1.911 MB / 1.462 GB, free: 2.512 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002129/1.612, allocations: 0.9802 MB / 1.463 GB, free: 1.535 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005973/1.613, allocations: 410.8 kB / 1.464 GB, free: 1.066 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/1.615, allocations: 1.159 MB / 1.465 GB, free: 15.88 MB / 1.061 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001459/1.617, allocations: 142.2 kB / 1.465 GB, free: 15.74 MB / 1.061 GB Notification: Performance of pre-optimization done (n=133): time 3.156e-06/1.617, allocations: 0 / 1.465 GB, free: 15.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=133): time 0.007923/1.625, allocations: 3.041 MB / 1.468 GB, free: 12.67 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/1.625, allocations: 145.8 kB / 1.468 GB, free: 12.5 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004999/1.63, allocations: 3.39 MB / 1.471 GB, free: 9.086 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0002593/1.63, allocations: 57.7 kB / 1.471 GB, free: 9.023 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001582/1.632, allocations: 2.139 MB / 1.473 GB, free: 6.875 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004061/1.632, allocations: 482.1 kB / 1.474 GB, free: 6.406 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/1.632, allocations: 193.9 kB / 1.474 GB, free: 6.215 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.289e-05/1.632, allocations: 305.1 kB / 1.474 GB, free: 5.914 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/1.635, allocations: 1.094 MB / 1.475 GB, free: 4.816 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/1.638, allocations: 2.123 MB / 1.477 GB, free: 2.207 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005388/1.644, allocations: 3.16 MB / 1.481 GB, free: 14.61 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/1.644, allocations: 11.94 kB / 1.481 GB, free: 14.6 MB / 1.076 GB Notification: Performance of matching and sorting (n=292) (initialization): time 0.007223/1.651, allocations: 3.479 MB / 1.484 GB, free: 11.1 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005405/1.651, allocations: 1.041 MB / 1.485 GB, free: 9.617 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.887e-05/1.651, allocations: 28 kB / 1.485 GB, free: 9.59 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.279e-05/1.652, allocations: 48 kB / 1.485 GB, free: 9.543 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/1.654, allocations: 0.6552 MB / 1.486 GB, free: 8.887 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.847e-05/1.654, allocations: 59.8 kB / 1.486 GB, free: 8.828 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/1.658, allocations: 0.6366 MB / 1.486 GB, free: 8.191 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/1.659, allocations: 124 kB / 1.487 GB, free: 8.07 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/1.659, allocations: 7.938 kB / 1.487 GB, free: 8.062 MB / 1.076 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006582/1.665, allocations: 3.083 MB / 1.49 GB, free: 4.969 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.644e-05/1.665, allocations: 35.98 kB / 1.49 GB, free: 4.934 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/1.665, allocations: 44 kB / 1.49 GB, free: 4.891 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/1.668, allocations: 0.6516 MB / 1.49 GB, free: 4.238 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.184e-05/1.668, allocations: 63.8 kB / 1.49 GB, free: 4.176 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/1.672, allocations: 0.5221 MB / 1.491 GB, free: 3.656 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/1.672, allocations: 124 kB / 1.491 GB, free: 3.535 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (288): * Single equations (assignments): 284 * 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.001884/1.674, allocations: 1.168 MB / 1.492 GB, free: 2.355 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004555/1.674, allocations: 355.4 kB / 1.492 GB, free: 2.004 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00526/1.68, allocations: 2.427 MB / 1.495 GB, free: 15.55 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/1.68, allocations: 12 kB / 1.495 GB, free: 15.54 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.68, allocations: 8 kB / 1.495 GB, free: 15.53 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004167/1.684, allocations: 2.05 MB / 1.497 GB, free: 13.39 MB / 1.092 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 postOpt removeSimpleEquations (simulation): time 0.01121/1.695, allocations: 6.498 MB / 1.503 GB, free: 6.672 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.695, allocations: 11.94 kB / 1.503 GB, free: 6.66 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/1.697, allocations: 343.6 kB / 1.503 GB, free: 6.324 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/1.697, allocations: 56.83 kB / 1.504 GB, free: 6.266 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.714e-05/1.697, allocations: 43.97 kB / 1.504 GB, free: 6.223 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/1.698, allocations: 1.436 MB / 1.505 GB, free: 4.652 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.698, allocations: 15.94 kB / 1.505 GB, free: 4.637 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006799/1.705, allocations: 3.477 MB / 1.508 GB, free: 1.012 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009969/1.706, allocations: 0.6058 MB / 1.509 GB, free: 392 kB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003382/1.706, allocations: 35.98 kB / 1.509 GB, free: 356 kB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/1.709, allocations: 347.4 kB / 1.509 GB, free: 8 kB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/1.709, allocations: 120.6 kB / 1.509 GB, free: 15.89 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.709, allocations: 63.95 kB / 1.51 GB, free: 15.83 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.003066/1.712, allocations: 2.299 MB / 1.512 GB, free: 13.52 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.3e-07/1.712, allocations: 0 / 1.512 GB, free: 13.52 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.004412/1.717, allocations: 2.037 MB / 1.514 GB, free: 11.48 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (131): * Single equations (assignments): 128 * 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.007888/1.725, allocations: 4.417 MB / 1.518 GB, free: 6.934 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.008978/1.734, allocations: 4.067 MB / 1.522 GB, free: 2.855 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 8.986e-06/1.734, allocations: 4 kB / 1.522 GB, free: 2.852 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.002425/1.736, allocations: 1.115 MB / 1.523 GB, free: 1.727 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01191/1.748, allocations: 1.619 MB / 1.525 GB, free: 120 kB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05771/1.806, allocations: 33.97 MB / 1.558 GB, free: 10.94 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/1.808, allocations: 2.665 MB / 1.561 GB, free: 8.246 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.004415/1.812, allocations: 1.076 MB / 1.562 GB, free: 7.168 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/1.814, allocations: 1.745 MB / 1.563 GB, free: 5.422 MB / 1.154 GB Notification: Performance of SimCode: time 2.134e-06/1.814, allocations: 0 / 1.563 GB, free: 5.422 MB / 1.154 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).