Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",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.001007/0.001008, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006933/0.006933, allocations: 171.3 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.715/1.715, allocations: 292.7 MB / 0.5502 GB, free: 14.43 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000886/0.0008857, allocations: 19.91 kB / 0.6744 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2235, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.6192/0.8428, allocations: 294 MB / 1.075 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.06344/0.9063, allocations: 49.24 MB / 1.123 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008424/0.9148, allocations: 246.3 kB / 1.123 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.008428/0.9232, allocations: 2.774 MB / 1.126 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.02473/0.948, allocations: 8.373 MB / 1.134 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.01557/0.9635, allocations: 6.03 MB / 1.14 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.02842/0.992, allocations: 24.49 MB / 1.164 GB, free: 76 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008126/1, allocations: 4.706 MB / 1.169 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01283/1.013, allocations: 6.206 MB / 1.175 GB, free: 5.047 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007597/1.021, allocations: 4.899 MB / 1.18 GB, free: 128 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001095/1.022, allocations: 236 kB / 1.18 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009461/1.031, allocations: 3.905 MB / 1.184 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001365/1.033, allocations: 1.123 MB / 1.185 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.004607/1.037, allocations: 3.32 MB / 1.188 GB, free: 7.508 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01355/1.051, allocations: 9.928 MB / 1.198 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/1.051, allocations: 0 / 1.198 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.963e-06/1.051, allocations: 4 kB / 1.198 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001659/1.051, allocations: 0 / 1.198 GB, free: 13.55 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.01022/1.061, allocations: 6.179 MB / 1.204 GB, free: 7.234 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/1.061, allocations: 8.031 kB / 1.204 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009044/1.062, allocations: 0.5357 MB / 1.204 GB, free: 6.684 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001936/1.064, allocations: 0.7764 MB / 1.205 GB, free: 5.898 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008658/1.073, allocations: 5.173 MB / 1.21 GB, free: 0.6523 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/1.073, allocations: 324.1 kB / 1.21 GB, free: 340 kB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006116/1.074, allocations: 440 kB / 1.211 GB, free: 15.9 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006979/1.081, allocations: 4.381 MB / 1.215 GB, free: 11.24 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.414e-05/1.081, allocations: 19.77 kB / 1.215 GB, free: 11.22 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/1.081, allocations: 176 kB / 1.215 GB, free: 11.05 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000105/1.081, allocations: 116 kB / 1.215 GB, free: 10.93 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005021/1.086, allocations: 2.976 MB / 1.218 GB, free: 7.953 MB / 0.92 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.02394/1.11, allocations: 25.03 MB / 1.243 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002826/1.113, allocations: 2.764 MB / 1.245 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/1.114, allocations: 0.9954 MB / 1.246 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002604/1.117, allocations: 3.92 MB / 1.25 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/1.117, allocations: 68.5 kB / 1.25 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=217): time 3.787e-06/1.117, allocations: 0 / 1.25 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of matching and sorting (n=217): time 0.009633/1.127, allocations: 4.119 MB / 1.254 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/1.127, allocations: 73.41 kB / 1.254 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005664/1.133, allocations: 4.199 MB / 1.258 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003279/1.133, allocations: 89.64 kB / 1.259 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.135, allocations: 2.772 MB / 1.261 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007157/1.136, allocations: 0.7664 MB / 1.262 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/1.136, allocations: 227.6 kB / 1.262 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.61e-05/1.136, allocations: 309.1 kB / 1.262 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/1.137, allocations: 0.8099 MB / 1.263 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001949/1.139, allocations: 1.837 MB / 1.265 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003238/1.142, allocations: 2.525 MB / 1.268 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/1.142, allocations: 4 kB / 1.268 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.3363/1.479, allocations: 3.567 MB / 1.271 GB, free: 352.4 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.000291/1.479, allocations: 0.7372 MB / 1.272 GB, free: 351.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/1.479, allocations: 25.56 kB / 1.272 GB, free: 351.5 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002647/1.482, allocations: 0.597 MB / 1.272 GB, free: 351.4 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/1.484, allocations: 0.5556 MB / 1.273 GB, free: 351.4 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/1.486, allocations: 2.689 MB / 1.276 GB, free: 349.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005948/1.492, allocations: 0.6153 MB / 1.276 GB, free: 349.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005618/1.493, allocations: 138.6 kB / 1.276 GB, free: 349.3 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.493, allocations: 2.938 kB / 1.276 GB, free: 349.3 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00557/1.499, allocations: 2.826 MB / 1.279 GB, free: 349 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.492e-05/1.499, allocations: 23.34 kB / 1.279 GB, free: 349 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009613/1.5, allocations: 368.4 kB / 1.279 GB, free: 349 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/1.501, allocations: 0.5572 MB / 1.28 GB, free: 348.9 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00756/1.509, allocations: 7.722 MB / 1.287 GB, free: 343.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004793/1.514, allocations: 0.576 MB / 1.288 GB, free: 343.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003674/1.514, allocations: 130 kB / 1.288 GB, free: 343.3 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (323): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,12), (1,9), (1,12), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002384/1.517, allocations: 1.006 MB / 1.289 GB, free: 342.7 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/1.518, allocations: 0.5028 MB / 1.29 GB, free: 342.7 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007696/1.526, allocations: 3.588 MB / 1.293 GB, free: 341.3 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.456e-05/1.526, allocations: 36.39 kB / 1.293 GB, free: 341.3 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.736e-05/1.526, allocations: 0.5 kB / 1.293 GB, free: 341.3 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004216/1.53, allocations: 2.449 MB / 1.296 GB, free: 340.2 MB / 0.9669 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.01528/1.545, allocations: 8.226 MB / 1.304 GB, free: 336.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/1.545, allocations: 1.969 kB / 1.304 GB, free: 336.2 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.547, allocations: 359.8 kB / 1.304 GB, free: 336.2 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007061/1.547, allocations: 301.5 kB / 1.304 GB, free: 336.1 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/1.548, allocations: 63.31 kB / 1.304 GB, free: 336.1 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001371/1.549, allocations: 2.508 MB / 1.307 GB, free: 333.8 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.549, allocations: 1.312 kB / 1.307 GB, free: 333.8 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007039/1.556, allocations: 4.357 MB / 1.311 GB, free: 331.8 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.559, allocations: 0.9718 MB / 1.312 GB, free: 331.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/1.56, allocations: 47.56 kB / 1.312 GB, free: 331.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003797/1.563, allocations: 430.3 kB / 1.312 GB, free: 331.1 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/1.564, allocations: 150.1 kB / 1.313 GB, free: 331.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002472/1.564, allocations: 110.9 kB / 1.313 GB, free: 331.1 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.005335/1.569, allocations: 2.772 MB / 1.315 GB, free: 330.1 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8.02e-07/1.569, allocations: 1.875 kB / 1.315 GB, free: 330.1 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.01035/1.58, allocations: 3.277 MB / 1.319 GB, free: 329.5 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,9), (1,7), (1,9), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008743/1.588, allocations: 6.138 MB / 1.325 GB, free: 326.8 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.006775/1.595, allocations: 4.444 MB / 1.329 GB, free: 324.9 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.595, allocations: 5.625 kB / 1.329 GB, free: 324.9 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00177/1.597, allocations: 1.236 MB / 1.33 GB, free: 324.5 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01443/1.611, allocations: 2.686 MB / 1.333 GB, free: 323.4 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07/1.681, allocations: 44.59 MB / 1.376 GB, free: 276.3 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/1.684, allocations: 2.865 MB / 1.379 GB, free: 273.4 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.004637/1.688, allocations: 1.167 MB / 1.38 GB, free: 272.3 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002543/1.691, allocations: 2.514 MB / 1.383 GB, free: 269.8 MB / 0.9669 GB Notification: Performance of SimCode: time 8.01e-07/1.691, allocations: 0 / 1.383 GB, free: 269.8 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1689/1.86, allocations: 143.3 MB / 1.523 GB, free: 127.9 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/1.86, allocations: 276.8 kB / 1.523 GB, free: 127.5 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.351/8.211, allocations: 0 / 1.523 GB, free: 127.5 MB / 0.9669 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)