Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_latest_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.001697/0.001697, 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.001823/0.001823, allocations: 193.6 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.72/2.72, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 64.62 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2461, allocations: 159.1 MB / 1.064 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 0.777/1.023, allocations: 380.1 MB / 1.435 GB, free: 7.105 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.05547/1.079, allocations: 46.53 MB / 1.48 GB, free: 13.66 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005085/1.084, allocations: 179 kB / 1.48 GB, free: 13.49 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.01517/1.099, allocations: 8.588 MB / 1.489 GB, free: 4.879 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.01694/1.116, allocations: 7.326 MB / 1.496 GB, free: 13.52 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.008461/1.124, allocations: 3.836 MB / 1.5 GB, free: 9.715 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.02068/1.145, allocations: 17.1 MB / 1.516 GB, free: 8.578 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007151/1.152, allocations: 5.586 MB / 1.522 GB, free: 2.91 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01156/1.164, allocations: 6.267 MB / 1.528 GB, free: 12.62 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006198/1.17, allocations: 3.702 MB / 1.532 GB, free: 8.922 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0009977/1.171, allocations: 0.4922 MB / 1.532 GB, free: 8.43 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01166/1.183, allocations: 6.338 MB / 1.538 GB, free: 2.078 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.001886/1.185, allocations: 1.983 MB / 1.54 GB, free: 92 kB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.003577/1.188, allocations: 3.126 MB / 1.543 GB, free: 12.95 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.01266/1.201, allocations: 10.17 MB / 1.553 GB, free: 2.75 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.201, allocations: 0 / 1.553 GB, free: 2.75 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.232e-06/1.201, allocations: 0 / 1.553 GB, free: 2.75 MB / 1.154 GB Notification: Performance of Transformations before backend: time 7.84e-05/1.201, allocations: 0 / 1.553 GB, free: 2.75 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 864 * Number of variables: 864 Notification: Performance of Generate backend data structure: time 0.01011/1.211, allocations: 6.445 MB / 1.56 GB, free: 12.19 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/1.211, allocations: 11.98 kB / 1.56 GB, free: 12.18 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005488/1.212, allocations: 472.1 kB / 1.56 GB, free: 11.71 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/1.224, allocations: 2.01 MB / 1.562 GB, free: 9.688 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009601/1.233, allocations: 5.616 MB / 1.567 GB, free: 3.992 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001536/1.235, allocations: 0.595 MB / 1.568 GB, free: 3.371 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005714/1.235, allocations: 351.9 kB / 1.568 GB, free: 3.027 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009015/1.244, allocations: 4.529 MB / 1.573 GB, free: 14.38 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.733e-05/1.244, allocations: 0 / 1.573 GB, free: 14.38 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/1.245, allocations: 144 kB / 1.573 GB, free: 14.24 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/1.245, allocations: 142.4 kB / 1.573 GB, free: 14.1 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009668/1.255, allocations: 3.999 MB / 1.577 GB, free: 10.09 MB / 1.186 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.02813/1.283, allocations: 19.76 MB / 1.596 GB, free: 4.93 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00428/1.287, allocations: 1.768 MB / 1.598 GB, free: 3.121 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/1.289, allocations: 0.9168 MB / 1.599 GB, free: 2.203 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006528/1.29, allocations: 405.3 kB / 1.599 GB, free: 1.734 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002575/1.293, allocations: 1.069 MB / 1.6 GB, free: 0.6406 MB / 1.201 GB Notification: Performance of pre-optimization done (n=127): time 3.075e-06/1.293, allocations: 0 / 1.6 GB, free: 0.6406 MB / 1.201 GB Notification: Performance of matching and sorting (n=127): time 0.008345/1.301, allocations: 2.925 MB / 1.603 GB, free: 13.68 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.458e-05/1.301, allocations: 145.5 kB / 1.603 GB, free: 13.51 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006732/1.308, allocations: 4.657 MB / 1.608 GB, free: 8.867 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0001606/1.308, allocations: 53.7 kB / 1.608 GB, free: 8.809 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.31, allocations: 2.433 MB / 1.61 GB, free: 6.355 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004335/1.31, allocations: 477.5 kB / 1.611 GB, free: 5.883 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/1.311, allocations: 0.678 MB / 1.611 GB, free: 5.195 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 9.244e-05/1.311, allocations: 305.1 kB / 1.612 GB, free: 4.895 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003464/1.315, allocations: 1.401 MB / 1.613 GB, free: 3.484 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004262/1.319, allocations: 2.549 MB / 1.616 GB, free: 432 kB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006767/1.326, allocations: 3.736 MB / 1.619 GB, free: 12.23 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.865e-05/1.326, allocations: 11.94 kB / 1.619 GB, free: 12.21 MB / 1.232 GB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009131/1.335, allocations: 4.333 MB / 1.623 GB, free: 7.859 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/1.335, allocations: 51.58 kB / 1.624 GB, free: 7.805 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.785e-05/1.335, allocations: 32 kB / 1.624 GB, free: 7.773 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.411e-05/1.335, allocations: 51.98 kB / 1.624 GB, free: 7.723 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003063/1.338, allocations: 0.7294 MB / 1.624 GB, free: 6.992 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.289e-05/1.338, allocations: 79.66 kB / 1.624 GB, free: 6.914 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/1.342, allocations: 0.5717 MB / 1.625 GB, free: 6.34 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/1.343, allocations: 148 kB / 1.625 GB, free: 6.195 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004992/1.348, allocations: 2.559 MB / 1.628 GB, free: 3.629 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004182/1.352, allocations: 2.544 MB / 1.63 GB, free: 0.5781 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006726/1.359, allocations: 3.734 MB / 1.634 GB, free: 12.38 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.641e-05/1.359, allocations: 11.94 kB / 1.634 GB, free: 12.37 MB / 1.248 GB Notification: Performance of matching and sorting (n=420) (initialization_lambda0): time 0.009122/1.368, allocations: 4.329 MB / 1.638 GB, free: 8.016 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/1.368, allocations: 49.69 kB / 1.638 GB, free: 7.961 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.191e-05/1.368, allocations: 36 kB / 1.638 GB, free: 7.926 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.024e-05/1.368, allocations: 48 kB / 1.638 GB, free: 7.879 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003026/1.371, allocations: 0.7375 MB / 1.639 GB, free: 7.141 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.255e-05/1.371, allocations: 71.72 kB / 1.639 GB, free: 7.07 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/1.375, allocations: 491.2 kB / 1.639 GB, free: 6.586 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002547/1.375, allocations: 147.9 kB / 1.639 GB, free: 6.441 MB / 1.248 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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 (352): * Single equations (assignments): 346 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 2 * 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.0005548/1.376, allocations: 374 kB / 1.64 GB, free: 6.07 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006911/1.377, allocations: 434.4 kB / 1.64 GB, free: 5.641 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00597/1.383, allocations: 2.316 MB / 1.642 GB, free: 3.297 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/1.383, allocations: 15.98 kB / 1.643 GB, free: 3.281 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/1.383, allocations: 4 kB / 1.643 GB, free: 3.277 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004586/1.387, allocations: 1.918 MB / 1.644 GB, free: 1.27 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/1.4, allocations: 6.703 MB / 1.651 GB, free: 10.32 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/1.4, allocations: 19.98 kB / 1.651 GB, free: 10.3 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/1.402, allocations: 327.9 kB / 1.651 GB, free: 9.98 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002235/1.402, allocations: 52.83 kB / 1.651 GB, free: 9.926 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/1.402, allocations: 43.92 kB / 1.651 GB, free: 9.883 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/1.404, allocations: 1.559 MB / 1.653 GB, free: 8.184 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/1.404, allocations: 15.94 kB / 1.653 GB, free: 8.168 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007699/1.411, allocations: 3.387 MB / 1.656 GB, free: 4.621 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/1.413, allocations: 0.7256 MB / 1.657 GB, free: 3.871 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006285/1.413, allocations: 39.98 kB / 1.657 GB, free: 3.832 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/1.416, allocations: 199.8 kB / 1.657 GB, free: 3.637 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/1.416, allocations: 128.2 kB / 1.657 GB, free: 3.512 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.416, allocations: 63.97 kB / 1.657 GB, free: 3.449 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.005003/1.421, allocations: 3.123 MB / 1.66 GB, free: 352 kB / 1.264 GB Notification: Performance of sort global known variables: time 2.41e-07/1.421, allocations: 4 kB / 1.66 GB, free: 348 kB / 1.264 GB Notification: Performance of remove unused functions: time 0.005579/1.427, allocations: 2.295 MB / 1.663 GB, free: 14.04 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (125): * Single equations (assignments): 122 * 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.009171/1.436, allocations: 4.486 MB / 1.667 GB, free: 9.391 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01154/1.448, allocations: 5.104 MB / 1.672 GB, free: 4.277 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/1.448, allocations: 4.375 kB / 1.672 GB, free: 4.273 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.002674/1.45, allocations: 1.059 MB / 1.673 GB, free: 3.207 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008467/1.459, allocations: 2.135 MB / 1.675 GB, free: 1.125 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06151/1.52, allocations: 40.63 MB / 1.715 GB, free: 4.816 MB / 1.326 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003148/1.524, allocations: 3.023 MB / 1.718 GB, free: 1.762 MB / 1.326 GB Notification: Performance of simCode: alias equations: time 0.005652/1.529, allocations: 1.296 MB / 1.719 GB, free: 472 kB / 1.326 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002814/1.532, allocations: 2.096 MB / 1.721 GB, free: 14.36 MB / 1.342 GB Notification: Performance of SimCode: time 5.81e-07/1.532, allocations: 0 / 1.721 GB, free: 14.36 MB / 1.342 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).