Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.605/1.605, allocations: 288.4 MB / 303.6 MB, free: 8.078 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000993/0.0009931, allocations: 176.5 kB / 372.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 0.631 GB, free: 9.895 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008112/0.0008112, allocations: 98.23 kB / 0.7444 GB, free: 5.809 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004383/0.0004386, allocations: 12.56 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2235, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.7036/0.9271, allocations: 277.6 MB / 1.251 GB, free: 7.598 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.06339/0.9905, allocations: 46.55 MB / 1.297 GB, free: 8.969 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01278/1.003, allocations: 254.2 kB / 1.297 GB, free: 8.719 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.01077/1.014, allocations: 2.379 MB / 1.299 GB, free: 6.324 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.02592/1.04, allocations: 7.675 MB / 1.307 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0165/1.057, allocations: 4.978 MB / 1.312 GB, free: 9.668 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.02907/1.086, allocations: 21.07 MB / 1.332 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009412/1.095, allocations: 4.671 MB / 1.337 GB, free: 15.79 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01607/1.111, allocations: 6.156 MB / 1.343 GB, free: 9.602 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01274/1.124, allocations: 4.596 MB / 1.347 GB, free: 4.984 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 0.002862/1.127, allocations: 232 kB / 1.348 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/1.142, allocations: 3.659 MB / 1.351 GB, free: 1.09 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.002887/1.145, allocations: 1.065 MB / 1.352 GB, free: 20 kB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.00893/1.154, allocations: 3.17 MB / 1.355 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of NFConvertDAE.convert: time 0.01413/1.168, allocations: 7.711 MB / 1.363 GB, free: 5.094 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/1.168, allocations: 4 kB / 1.363 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.144e-06/1.168, allocations: 0 / 1.363 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004423/1.168, allocations: 0 / 1.363 GB, free: 5.09 MB / 0.8855 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.01472/1.183, allocations: 6.179 MB / 1.369 GB, free: 14.78 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/1.183, allocations: 8.031 kB / 1.369 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001583/1.185, allocations: 0.5395 MB / 1.369 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/1.188, allocations: 0.7803 MB / 1.37 GB, free: 13.43 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/1.199, allocations: 5.157 MB / 1.375 GB, free: 8.199 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003745/1.199, allocations: 328.1 kB / 1.375 GB, free: 7.875 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/1.2, allocations: 435.9 kB / 1.376 GB, free: 7.449 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/1.21, allocations: 4.354 MB / 1.38 GB, free: 2.812 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001579/1.211, allocations: 11.84 kB / 1.38 GB, free: 2.801 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007012/1.211, allocations: 176 kB / 1.38 GB, free: 2.629 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/1.212, allocations: 123.9 kB / 1.38 GB, free: 2.508 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006711/1.218, allocations: 2.941 MB / 1.383 GB, free: 15.56 MB / 0.9167 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.03199/1.25, allocations: 25.04 MB / 1.408 GB, free: 4.473 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/1.254, allocations: 2.745 MB / 1.41 GB, free: 1.512 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/1.255, allocations: 0.9915 MB / 1.411 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002865/1.258, allocations: 3.92 MB / 1.415 GB, free: 11.73 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.36e-05/1.258, allocations: 64.56 kB / 1.415 GB, free: 11.66 MB / 0.948 GB Notification: Performance of pre-optimization done (n=217): time 4.779e-06/1.258, allocations: 0 / 1.415 GB, free: 11.66 MB / 0.948 GB Notification: Performance of matching and sorting (n=217): time 0.01008/1.268, allocations: 4.1 MB / 1.419 GB, free: 7.469 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/1.268, allocations: 73.41 kB / 1.419 GB, free: 7.383 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007654/1.276, allocations: 4.16 MB / 1.423 GB, free: 3.242 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004652/1.276, allocations: 81.7 kB / 1.423 GB, free: 3.156 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/1.278, allocations: 2.767 MB / 1.426 GB, free: 380 kB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.5088/1.787, allocations: 0.7634 MB / 1.427 GB, free: 341.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/1.787, allocations: 56.91 kB / 1.427 GB, free: 341.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002666/1.788, allocations: 412.8 kB / 1.427 GB, free: 341.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/1.79, allocations: 0.7873 MB / 1.428 GB, free: 341 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002176/1.792, allocations: 1.805 MB / 1.43 GB, free: 339.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/1.795, allocations: 2.475 MB / 1.432 GB, free: 339 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/1.795, allocations: 6.75 kB / 1.432 GB, free: 339 MB / 0.948 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.009198/1.804, allocations: 3.492 MB / 1.436 GB, free: 337.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004656/1.805, allocations: 0.7441 MB / 1.436 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/1.805, allocations: 22.25 kB / 1.436 GB, free: 336.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/1.808, allocations: 0.5727 MB / 1.437 GB, free: 336.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/1.81, allocations: 0.5541 MB / 1.438 GB, free: 336.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/1.812, allocations: 2.682 MB / 1.44 GB, free: 334.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006187/1.819, allocations: 0.6098 MB / 1.441 GB, free: 334.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005463/1.819, allocations: 137.5 kB / 1.441 GB, free: 334.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/1.819, allocations: 4.812 kB / 1.441 GB, free: 334.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006157/1.825, allocations: 2.806 MB / 1.444 GB, free: 333.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.179e-05/1.826, allocations: 21.86 kB / 1.444 GB, free: 333.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/1.827, allocations: 367.4 kB / 1.444 GB, free: 333 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/1.829, allocations: 0.555 MB / 1.445 GB, free: 332.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009023/1.838, allocations: 7.717 MB / 1.452 GB, free: 326.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006484/1.844, allocations: 0.5683 MB / 1.453 GB, free: 326.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000503/1.845, allocations: 132.7 kB / 1.453 GB, free: 326.3 MB / 0.948 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.003027/1.848, allocations: 1.01 MB / 1.454 GB, free: 325.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001565/1.849, allocations: 0.4999 MB / 1.454 GB, free: 325.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007114/1.856, allocations: 3.577 MB / 1.458 GB, free: 323.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.896e-05/1.856, allocations: 37.19 kB / 1.458 GB, free: 323.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/1.857, allocations: 0 / 1.458 GB, free: 323.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004389/1.861, allocations: 2.425 MB / 1.46 GB, free: 322.9 MB / 0.948 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.01479/1.876, allocations: 8.197 MB / 1.468 GB, free: 318.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/1.876, allocations: 0.9375 kB / 1.468 GB, free: 318.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/1.877, allocations: 369.7 kB / 1.469 GB, free: 318.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006938/1.878, allocations: 303.8 kB / 1.469 GB, free: 318.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/1.878, allocations: 70.91 kB / 1.469 GB, free: 318.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/1.879, allocations: 2.502 MB / 1.471 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.879, allocations: 3.469 kB / 1.471 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007643/1.887, allocations: 4.323 MB / 1.476 GB, free: 314.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003006/1.89, allocations: 0.9733 MB / 1.477 GB, free: 313.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007878/1.891, allocations: 46.72 kB / 1.477 GB, free: 313.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003295/1.894, allocations: 430.8 kB / 1.477 GB, free: 313.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/1.894, allocations: 150.2 kB / 1.477 GB, free: 313.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/1.895, allocations: 111.5 kB / 1.477 GB, free: 313.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.004351/1.899, allocations: 2.731 MB / 1.48 GB, free: 312.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.51e-07/1.899, allocations: 3.75 kB / 1.48 GB, free: 312.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01226/1.911, allocations: 3.265 MB / 1.483 GB, free: 312.1 MB / 0.948 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.008635/1.92, allocations: 6.12 MB / 1.489 GB, free: 309.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.007143/1.927, allocations: 4.402 MB / 1.493 GB, free: 307.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.927, allocations: 4.656 kB / 1.493 GB, free: 307.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002326/1.93, allocations: 1.226 MB / 1.495 GB, free: 307.1 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01391/1.943, allocations: 2.643 MB / 1.497 GB, free: 305.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05981/2.003, allocations: 35.7 MB / 1.532 GB, free: 269.4 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001892/2.005, allocations: 2.869 MB / 1.535 GB, free: 266.5 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.005246/2.011, allocations: 1.16 MB / 1.536 GB, free: 265.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002841/2.013, allocations: 2.518 MB / 1.538 GB, free: 262.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.031e-06/2.013, allocations: 4 kB / 1.538 GB, free: 262.8 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.933/2.946, allocations: 149.9 MB / 1.685 GB, free: 113.9 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/2.947, allocations: 258.8 kB / 1.685 GB, free: 113.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.357/10.3, allocations: 0 / 1.685 GB, free: 113.5 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)