Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.359/1.359, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009858/0.0009859, allocations: 177.7 kB / 325.8 MB, free: 2.707 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205 MB / 0.576 GB, free: 20.94 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000842/0.000842, allocations: 86.72 kB / 0.6797 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003178/0.0003179, allocations: 8.531 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1817, allocations: 105.4 MB / 0.8962 GB, free: 68.1 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.05534/0.237, allocations: 74.42 MB / 0.9689 GB, free: 9.426 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01962/0.2567, allocations: 15.05 MB / 0.9836 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.2595, allocations: 55.62 kB / 0.9836 GB, free: 10.28 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.262, allocations: 0.6838 MB / 0.9843 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.006788/0.2688, allocations: 2.362 MB / 0.9866 GB, free: 7.223 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.003546/0.2724, allocations: 1.246 MB / 0.9878 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.005924/0.2783, allocations: 5.515 MB / 0.9932 GB, free: 468 kB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002061/0.2804, allocations: 1.132 MB / 0.9943 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002785/0.2832, allocations: 1.353 MB / 0.9956 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.2852, allocations: 1.147 MB / 0.9967 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0003645/0.2855, allocations: 56 kB / 0.9968 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002982/0.2885, allocations: 1.236 MB / 0.998 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.000486/0.289, allocations: 286.6 kB / 0.9983 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.2904, allocations: 0.7693 MB / 0.999 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.00402/0.2944, allocations: 2.71 MB / 1.002 GB, free: 7.715 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2945, allocations: 0 / 1.002 GB, free: 7.715 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2945, allocations: 0 / 1.002 GB, free: 7.715 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 7.388e-05/0.2945, allocations: 3.938 kB / 1.002 GB, free: 7.711 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.00378/0.2983, allocations: 1.783 MB / 1.003 GB, free: 5.859 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2984, allocations: 8.031 kB / 1.003 GB, free: 5.852 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002868/0.2987, allocations: 148.1 kB / 1.004 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009116/0.2996, allocations: 242.8 kB / 1.004 GB, free: 5.461 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.3024, allocations: 1.485 MB / 1.005 GB, free: 3.922 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.3024, allocations: 78 kB / 1.005 GB, free: 3.844 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.3026, allocations: 108 kB / 1.005 GB, free: 3.738 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002053/0.3047, allocations: 1.108 MB / 1.007 GB, free: 2.598 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.3047, allocations: 11.98 kB / 1.007 GB, free: 2.586 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.434e-05/0.3048, allocations: 40 kB / 1.007 GB, free: 2.547 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.3049, allocations: 24 kB / 1.007 GB, free: 2.523 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.3068, allocations: 0.929 MB / 1.007 GB, free: 1.59 MB / 0.6511 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.006121/0.3129, allocations: 4.907 MB / 1.012 GB, free: 12.39 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.3144, allocations: 0.6512 MB / 1.013 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006985/0.3151, allocations: 371 kB / 1.013 GB, free: 11.37 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006167/0.3157, allocations: 0.8277 MB / 1.014 GB, free: 10.36 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.3158, allocations: 43.12 kB / 1.014 GB, free: 10.3 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=61): time 3.677e-06/0.3158, allocations: 3.984 kB / 1.014 GB, free: 10.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=61): time 0.007042/0.3228, allocations: 1.892 MB / 1.016 GB, free: 8.379 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3229, allocations: 59.97 kB / 1.016 GB, free: 8.305 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002169/0.3251, allocations: 1.21 MB / 1.017 GB, free: 7.078 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001557/0.3252, allocations: 37.7 kB / 1.017 GB, free: 7.035 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006469/0.3259, allocations: 0.6142 MB / 1.018 GB, free: 6.414 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.3262, allocations: 216.9 kB / 1.018 GB, free: 6.199 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.3263, allocations: 61.69 kB / 1.018 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3265, allocations: 337.9 kB / 1.018 GB, free: 5.797 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/0.3272, allocations: 297.8 kB / 1.019 GB, free: 5.508 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009674/0.3282, allocations: 0.5163 MB / 1.019 GB, free: 4.91 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.3297, allocations: 0.748 MB / 1.02 GB, free: 4.117 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.3297, allocations: 4 kB / 1.02 GB, free: 4.113 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004703/0.3344, allocations: 1.402 MB / 1.021 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.3346, allocations: 202.2 kB / 1.022 GB, free: 2.449 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3346, allocations: 8 kB / 1.022 GB, free: 2.441 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005614/0.3352, allocations: 148.7 kB / 1.022 GB, free: 2.293 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005829/0.3357, allocations: 159.8 kB / 1.022 GB, free: 2.137 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008569/0.3366, allocations: 0.7201 MB / 1.023 GB, free: 1.391 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.3379, allocations: 179.8 kB / 1.023 GB, free: 1.215 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-05/0.338, allocations: 31.98 kB / 1.023 GB, free: 1.184 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.244e-06/0.338, allocations: 0 / 1.023 GB, free: 1.184 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004452/0.3425, allocations: 1.257 MB / 1.024 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.3425, allocations: 4 kB / 1.024 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005133/0.343, allocations: 157 kB / 1.024 GB, free: 15.76 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.3436, allocations: 159.8 kB / 1.024 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008451/0.3445, allocations: 0.7162 MB / 1.025 GB, free: 14.86 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.3457, allocations: 167.2 kB / 1.025 GB, free: 14.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.3458, allocations: 28 kB / 1.025 GB, free: 14.67 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000604/0.3464, allocations: 428.8 kB / 1.026 GB, free: 14.24 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.3468, allocations: 138.2 kB / 1.026 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004454/0.3512, allocations: 1.389 MB / 1.027 GB, free: 12.7 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.3512, allocations: 11.98 kB / 1.027 GB, free: 12.69 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.3513, allocations: 0 / 1.027 GB, free: 12.69 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003967/0.3552, allocations: 1.24 MB / 1.028 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006462/0.3617, allocations: 2.734 MB / 1.031 GB, free: 8.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3617, allocations: 4 kB / 1.031 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.3622, allocations: 124.2 kB / 1.031 GB, free: 8.445 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004498/0.3627, allocations: 136.8 kB / 1.031 GB, free: 8.309 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.3627, allocations: 19.98 kB / 1.031 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004567/0.3673, allocations: 2.482 MB / 1.034 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.3673, allocations: 12.06 kB / 1.034 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005348/0.3727, allocations: 1.851 MB / 1.035 GB, free: 3.719 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006378/0.3733, allocations: 307.2 kB / 1.036 GB, free: 3.398 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003047/0.3736, allocations: 20.06 kB / 1.036 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.3747, allocations: 87.81 kB / 1.036 GB, free: 3.293 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3748, allocations: 68.23 kB / 1.036 GB, free: 3.227 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-05/0.3749, allocations: 31.98 kB / 1.036 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001279/0.3762, allocations: 0.866 MB / 1.037 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3762, allocations: 0 / 1.037 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001896/0.3781, allocations: 0.7096 MB / 1.037 GB, free: 1.617 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.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 (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006395/0.3845, allocations: 2.726 MB / 1.04 GB, free: 14.83 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002881/0.3874, allocations: 1.172 MB / 1.041 GB, free: 13.66 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.3874, allocations: 7.938 kB / 1.041 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.389, allocations: 0.5956 MB / 1.042 GB, free: 13.04 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00471/0.3937, allocations: 0.7968 MB / 1.043 GB, free: 12.26 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0268/0.4206, allocations: 11.14 MB / 1.054 GB, free: 0.6133 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3319/0.7525, allocations: 1.164 MB / 1.055 GB, free: 150.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001421/0.754, allocations: 305.3 kB / 1.055 GB, free: 150.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006376/0.7546, allocations: 0.522 MB / 1.055 GB, free: 150.7 MB / 0.698 GB Notification: Performance of SimCode: time 9.32e-07/0.7546, allocations: 0 / 1.055 GB, free: 150.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3653/1.12, allocations: 42.61 MB / 1.097 GB, free: 127.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002671/1.12, allocations: 269.9 kB / 1.097 GB, free: 127.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.575/4.695, allocations: 0 / 1.097 GB, free: 127.2 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)