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.00108/0.00108, 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.001123/0.001123, allocations: 194.7 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002136/0.002136, allocations: 294.4 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9177/0.9177, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001733, allocations: 97.12 kB / 0.5953 GB, free: 27.88 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1236, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACNoExhaust): time 0.5483/0.6719, allocations: 342.9 MB / 1.015 GB, free: 12 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.04314/0.7151, allocations: 38.38 MB / 1.053 GB, free: 9.539 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003721/0.7188, allocations: 139.2 kB / 1.053 GB, free: 9.402 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.01062/0.7295, allocations: 5.622 MB / 1.058 GB, free: 3.762 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.3557/1.085, allocations: 5.798 MB / 1.064 GB, free: 21.69 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006756/1.092, allocations: 3.046 MB / 1.067 GB, free: 21.67 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01465/1.107, allocations: 11.34 MB / 1.078 GB, free: 21.65 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006168/1.113, allocations: 4.197 MB / 1.082 GB, free: 21.21 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009011/1.122, allocations: 4.876 MB / 1.087 GB, free: 21.2 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004982/1.127, allocations: 2.748 MB / 1.089 GB, free: 21.2 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.00106/1.128, allocations: 372.9 kB / 1.09 GB, free: 21.2 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009687/1.138, allocations: 5.303 MB / 1.095 GB, free: 21.2 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001875/1.14, allocations: 1.395 MB / 1.096 GB, free: 21.04 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003332/1.143, allocations: 2.252 MB / 1.099 GB, free: 20.41 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.008522/1.151, allocations: 7.588 MB / 1.106 GB, free: 19.56 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/1.151, allocations: 2.406 kB / 1.106 GB, free: 19.56 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.232e-06/1.151, allocations: 0 / 1.106 GB, free: 19.56 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.668e-05/1.151, allocations: 0.8438 kB / 1.106 GB, free: 19.56 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.007051/1.159, allocations: 4.771 MB / 1.111 GB, free: 17.34 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/1.159, allocations: 10 kB / 1.111 GB, free: 17.34 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003827/1.159, allocations: 368.7 kB / 1.111 GB, free: 17.29 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008316/1.167, allocations: 1.486 MB / 1.112 GB, free: 17.06 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005529/1.173, allocations: 3.74 MB / 1.116 GB, free: 16.34 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00106/1.174, allocations: 462.9 kB / 1.117 GB, free: 16.23 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/1.174, allocations: 264.2 kB / 1.117 GB, free: 16.23 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/1.18, allocations: 3.384 MB / 1.12 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.597e-05/1.18, allocations: 3.594 kB / 1.12 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002526/1.18, allocations: 105.3 kB / 1.12 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.928e-05/1.18, allocations: 106.5 kB / 1.12 GB, free: 15.9 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006277/1.187, allocations: 3.015 MB / 1.123 GB, free: 15.83 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.017/1.204, allocations: 14.74 MB / 1.138 GB, free: 8.52 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003214/1.207, allocations: 1.594 MB / 1.139 GB, free: 8.254 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/1.208, allocations: 0.6968 MB / 1.14 GB, free: 8.227 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003111/1.209, allocations: 304.2 kB / 1.14 GB, free: 7.941 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001662/1.21, allocations: 0.8105 MB / 1.141 GB, free: 7.855 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=103): time 2.544e-06/1.21, allocations: 3.75 kB / 1.141 GB, free: 7.855 MB / 0.7637 GB Notification: Performance of matching and sorting (n=103): time 0.005394/1.216, allocations: 2.19 MB / 1.143 GB, free: 7.52 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/1.216, allocations: 125.5 kB / 1.143 GB, free: 7.391 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003755/1.219, allocations: 3.206 MB / 1.146 GB, free: 7.102 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.22, allocations: 50.42 kB / 1.146 GB, free: 7.07 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009639/1.221, allocations: 1.716 MB / 1.148 GB, free: 6.371 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002404/1.221, allocations: 375.7 kB / 1.148 GB, free: 6.109 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005721/1.221, allocations: 468.9 kB / 1.149 GB, free: 6.012 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 2.985e-05/1.221, allocations: 302.8 kB / 1.149 GB, free: 5.715 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/1.224, allocations: 0.9601 MB / 1.15 GB, free: 5.531 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/1.226, allocations: 1.735 MB / 1.152 GB, free: 4.258 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003762/1.23, allocations: 2.523 MB / 1.154 GB, free: 2.148 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/1.23, allocations: 8 kB / 1.154 GB, free: 2.141 MB / 0.7637 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005428/1.235, allocations: 2.972 MB / 1.157 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/1.235, allocations: 41.7 kB / 1.157 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.764e-05/1.235, allocations: 23.98 kB / 1.157 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.174e-05/1.235, allocations: 36 kB / 1.157 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/1.238, allocations: 0.5219 MB / 1.158 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.246e-05/1.238, allocations: 46.77 kB / 1.158 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003063/1.241, allocations: 431.7 kB / 1.158 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/1.241, allocations: 99.86 kB / 1.158 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003582/1.244, allocations: 1.763 MB / 1.16 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002834/1.247, allocations: 1.722 MB / 1.162 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004318/1.252, allocations: 2.537 MB / 1.164 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.478e-05/1.252, allocations: 4 kB / 1.164 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of matching and sorting (n=282) (initialization_lambda0): time 0.006062/1.258, allocations: 2.974 MB / 1.167 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/1.258, allocations: 46.92 kB / 1.167 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/1.258, allocations: 20 kB / 1.167 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.064e-05/1.258, allocations: 32 kB / 1.167 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/1.26, allocations: 0.5287 MB / 1.168 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.042e-05/1.26, allocations: 46.67 kB / 1.168 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002993/1.263, allocations: 364.8 kB / 1.168 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/1.263, allocations: 95.36 kB / 1.168 GB, free: 6.695 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.0004186/1.264, allocations: 326.6 kB / 1.169 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004543/1.264, allocations: 308.1 kB / 1.169 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/1.268, allocations: 1.682 MB / 1.17 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/1.268, allocations: 11.94 kB / 1.17 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/1.268, allocations: 11.98 kB / 1.17 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003033/1.271, allocations: 1.307 MB / 1.172 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008367/1.28, allocations: 4.551 MB / 1.176 GB, free: 0.5234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.28, allocations: 8 kB / 1.176 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/1.281, allocations: 246.6 kB / 1.176 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/1.281, allocations: 55.53 kB / 1.176 GB, free: 236 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.107e-05/1.281, allocations: 31.94 kB / 1.177 GB, free: 204 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/1.282, allocations: 1.536 MB / 1.178 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.282, allocations: 10.62 kB / 1.178 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005216/1.288, allocations: 2.524 MB / 1.18 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00098/1.289, allocations: 0.5515 MB / 1.181 GB, free: 11.38 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/1.289, allocations: 28 kB / 1.181 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001992/1.291, allocations: 155.9 kB / 1.181 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/1.291, allocations: 89.78 kB / 1.181 GB, free: 11.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/1.291, allocations: 51.97 kB / 1.181 GB, free: 11.07 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.003301/1.295, allocations: 2.171 MB / 1.183 GB, free: 8.914 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/1.295, allocations: 0 / 1.183 GB, free: 8.914 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003985/1.299, allocations: 1.691 MB / 1.185 GB, free: 7.219 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.006732/1.305, allocations: 3.547 MB / 1.189 GB, free: 3.637 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.008024/1.313, allocations: 3.574 MB / 1.192 GB, free: 208 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/1.313, allocations: 8.188 kB / 1.192 GB, free: 200 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001873/1.315, allocations: 0.8115 MB / 1.193 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006317/1.322, allocations: 1.516 MB / 1.194 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/1.363, allocations: 26.83 MB / 1.221 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002176/1.365, allocations: 2.315 MB / 1.223 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00379/1.369, allocations: 0.8955 MB / 1.224 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001854/1.371, allocations: 1.444 MB / 1.225 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/1.371, allocations: 0 / 1.225 GB, free: 12.3 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).