Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACNoExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust,fileNamePrefix="BuildingSystems_BuildingSystems_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.001023/0.001023, 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.001028/0.001028, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.271/1.271, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 290.7 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9202/0.9202, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 96.36 kB / 0.5954 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1288, allocations: 86.96 MB / 0.6803 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.5544/0.6833, allocations: 342.9 MB / 1.015 GB, free: 84 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.04526/0.7286, allocations: 38.37 MB / 1.053 GB, free: 9.605 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00393/0.7326, allocations: 139.2 kB / 1.053 GB, free: 9.469 MB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/FMI/Conversion/AirToOutlet.mo:96:3-98:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/FMI/Conversion/InletToAir.mo:80:3-82:60:writable] Warning: Connector bacPro_internal is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.01082/0.7434, allocations: 5.626 MB / 1.058 GB, free: 3.828 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.3523/1.096, allocations: 5.799 MB / 1.064 GB, free: 21.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006696/1.102, allocations: 3.043 MB / 1.067 GB, free: 21.73 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01439/1.117, allocations: 11.33 MB / 1.078 GB, free: 21.72 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005821/1.123, allocations: 4.198 MB / 1.082 GB, free: 21.28 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009324/1.132, allocations: 4.878 MB / 1.087 GB, free: 21.27 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005134/1.137, allocations: 2.747 MB / 1.089 GB, free: 21.27 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007523/1.138, allocations: 374.3 kB / 1.09 GB, free: 21.27 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009178/1.147, allocations: 5.299 MB / 1.095 GB, free: 21.27 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001421/1.149, allocations: 1.396 MB / 1.096 GB, free: 21.11 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002833/1.151, allocations: 2.254 MB / 1.099 GB, free: 20.48 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.009338/1.161, allocations: 7.588 MB / 1.106 GB, free: 19.63 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/1.161, allocations: 0.9375 kB / 1.106 GB, free: 19.63 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.423e-06/1.161, allocations: 0 / 1.106 GB, free: 19.63 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.799e-05/1.161, allocations: 2.531 kB / 1.106 GB, free: 19.63 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 649 * Number of variables: 649 Notification: Performance of Generate backend data structure: time 0.007308/1.168, allocations: 4.773 MB / 1.111 GB, free: 17.42 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/1.168, allocations: 15.41 kB / 1.111 GB, free: 17.41 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003885/1.169, allocations: 362.7 kB / 1.111 GB, free: 17.36 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008234/1.177, allocations: 1.484 MB / 1.112 GB, free: 17.14 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005918/1.183, allocations: 3.744 MB / 1.116 GB, free: 16.41 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001015/1.184, allocations: 458.9 kB / 1.117 GB, free: 16.31 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003757/1.184, allocations: 257.2 kB / 1.117 GB, free: 16.31 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005697/1.19, allocations: 3.384 MB / 1.12 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.611e-05/1.19, allocations: 5 kB / 1.12 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/1.19, allocations: 111.3 kB / 1.12 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.721e-05/1.19, allocations: 106.1 kB / 1.12 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006236/1.197, allocations: 3.007 MB / 1.123 GB, free: 15.91 MB / 0.7637 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.01756/1.214, allocations: 14.76 MB / 1.138 GB, free: 8.594 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/1.217, allocations: 1.587 MB / 1.139 GB, free: 8.332 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/1.219, allocations: 0.6873 MB / 1.14 GB, free: 8.312 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/1.219, allocations: 304.3 kB / 1.14 GB, free: 8.027 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001637/1.221, allocations: 0.8084 MB / 1.141 GB, free: 7.941 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=103): time 2.565e-06/1.221, allocations: 0 / 1.141 GB, free: 7.941 MB / 0.7637 GB Notification: Performance of matching and sorting (n=103): time 0.005423/1.226, allocations: 2.189 MB / 1.143 GB, free: 7.609 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/1.226, allocations: 122.5 kB / 1.143 GB, free: 7.48 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/1.23, allocations: 3.204 MB / 1.146 GB, free: 7.191 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001575/1.23, allocations: 55.47 kB / 1.146 GB, free: 7.16 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.001126/1.232, allocations: 1.717 MB / 1.148 GB, free: 6.453 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/1.232, allocations: 377.5 kB / 1.148 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005717/1.232, allocations: 467.9 kB / 1.149 GB, free: 6.09 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 3.109e-05/1.232, allocations: 301.1 kB / 1.149 GB, free: 5.793 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/1.234, allocations: 0.9618 MB / 1.15 GB, free: 5.609 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/1.237, allocations: 1.735 MB / 1.152 GB, free: 4.387 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003722/1.241, allocations: 2.524 MB / 1.154 GB, free: 2.273 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/1.241, allocations: 4 kB / 1.154 GB, free: 2.27 MB / 0.7637 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005524/1.246, allocations: 2.985 MB / 1.157 GB, free: 108 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/1.246, allocations: 49.45 kB / 1.157 GB, free: 56 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/1.246, allocations: 23.98 kB / 1.157 GB, free: 32 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.379e-05/1.246, allocations: 32 kB / 1.157 GB, free: 0 / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/1.249, allocations: 0.5222 MB / 1.158 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.092e-05/1.249, allocations: 50.77 kB / 1.158 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/1.252, allocations: 438.2 kB / 1.158 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001603/1.252, allocations: 96.92 kB / 1.158 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003495/1.255, allocations: 1.76 MB / 1.16 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002771/1.258, allocations: 1.731 MB / 1.162 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004286/1.262, allocations: 2.527 MB / 1.164 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.326e-05/1.262, allocations: 11.98 kB / 1.164 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=282) (initialization_lambda0): time 0.006139/1.269, allocations: 2.975 MB / 1.167 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/1.269, allocations: 45.8 kB / 1.167 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/1.269, allocations: 20 kB / 1.167 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/1.269, allocations: 32 kB / 1.167 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/1.271, allocations: 0.5233 MB / 1.168 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.373e-05/1.271, allocations: 44.05 kB / 1.168 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/1.274, allocations: 371.1 kB / 1.168 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/1.274, allocations: 94.48 kB / 1.168 GB, free: 6.809 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (247): * Single equations (assignments): 243 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0004395/1.274, allocations: 324.6 kB / 1.169 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004075/1.275, allocations: 308.1 kB / 1.169 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003983/1.279, allocations: 1.679 MB / 1.17 GB, free: 5.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/1.279, allocations: 11.94 kB / 1.17 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/1.279, allocations: 0 / 1.17 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00299/1.282, allocations: 1.309 MB / 1.172 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008263/1.29, allocations: 4.563 MB / 1.176 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/1.29, allocations: 8 kB / 1.176 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/1.292, allocations: 239 kB / 1.176 GB, free: 432 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/1.292, allocations: 52.83 kB / 1.176 GB, free: 376 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-05/1.292, allocations: 39.92 kB / 1.177 GB, free: 336 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/1.293, allocations: 1.542 MB / 1.178 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.293, allocations: 10.72 kB / 1.178 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00514/1.298, allocations: 2.523 MB / 1.181 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009081/1.299, allocations: 0.5476 MB / 1.181 GB, free: 11.51 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/1.3, allocations: 28 kB / 1.181 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.301, allocations: 154.6 kB / 1.181 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.302, allocations: 89.78 kB / 1.181 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/1.302, allocations: 51.97 kB / 1.181 GB, free: 11.2 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.003384/1.305, allocations: 2.171 MB / 1.183 GB, free: 9.043 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/1.305, allocations: 0 / 1.183 GB, free: 9.043 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003909/1.309, allocations: 1.687 MB / 1.185 GB, free: 7.352 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (102): * Single equations (assignments): 99 * 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.00642/1.316, allocations: 3.55 MB / 1.189 GB, free: 3.766 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0077/1.323, allocations: 3.575 MB / 1.192 GB, free: 336 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/1.323, allocations: 0 / 1.192 GB, free: 336 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001824/1.325, allocations: 0.8199 MB / 1.193 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/1.331, allocations: 1.508 MB / 1.194 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03988/1.371, allocations: 26.83 MB / 1.221 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/1.373, allocations: 2.307 MB / 1.223 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003757/1.377, allocations: 0.8955 MB / 1.224 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.379, allocations: 1.448 MB / 1.225 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of SimCode: time 6.52e-07/1.379, allocations: 0 / 1.225 GB, free: 12.43 MB / 0.8419 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: BuildingSystems.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(0.0648, 0.002049155923789109, 0.00648).