Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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_TCon,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon",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.413/1.413, allocations: 252 MB / 267 MB, free: 10.98 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.001048/0.001048, allocations: 185 kB / 326.6 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 0.5777 GB, free: 20.57 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.0008788/0.0008791, allocations: 86.12 kB / 0.6822 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004785/0.0004785, allocations: 9.25 kB / 0.7964 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2766, allocations: 106.3 MB / 0.9003 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05049/0.3271, allocations: 56.52 MB / 0.9555 GB, free: 7.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01582/0.343, allocations: 11.08 MB / 0.9663 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002437/0.3455, allocations: 51.62 kB / 0.9664 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.3477, allocations: 464.9 kB / 0.9668 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.005932/0.3537, allocations: 1.522 MB / 0.9683 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.003633/0.3574, allocations: 0.8878 MB / 0.9692 GB, free: 9.641 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.005447/0.3628, allocations: 3.378 MB / 0.9725 GB, free: 6.25 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.3648, allocations: 0.7898 MB / 0.9732 GB, free: 5.434 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.3677, allocations: 1.034 MB / 0.9742 GB, free: 4.395 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001989/0.3697, allocations: 0.8127 MB / 0.975 GB, free: 3.578 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0004381/0.3702, allocations: 44 kB / 0.9751 GB, free: 3.535 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.3735, allocations: 1.08 MB / 0.9761 GB, free: 2.453 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0005038/0.3741, allocations: 207 kB / 0.9763 GB, free: 2.25 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.000764/0.3748, allocations: 281.1 kB / 0.9766 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.00305/0.3779, allocations: 1.629 MB / 0.9782 GB, free: 344 kB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.3779, allocations: 0 / 0.9782 GB, free: 344 kB / 0.6198 GB Notification: Performance of FrontEnd: time 2.796e-06/0.3779, allocations: 4 kB / 0.9782 GB, free: 340 kB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.324e-05/0.378, allocations: 0 / 0.9782 GB, free: 340 kB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004097/0.3821, allocations: 1.501 MB / 0.9797 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.3822, allocations: 8.031 kB / 0.9797 GB, free: 14.77 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003133/0.3825, allocations: 130.7 kB / 0.9798 GB, free: 14.63 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002479/0.385, allocations: 473.9 kB / 0.9802 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/0.3878, allocations: 1.094 MB / 0.9813 GB, free: 13.01 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003872/0.3882, allocations: 121.9 kB / 0.9814 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3883, allocations: 84 kB / 0.9815 GB, free: 12.81 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.3905, allocations: 0.9956 MB / 0.9825 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3905, allocations: 0 / 0.9825 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.389e-05/0.3906, allocations: 36 kB / 0.9825 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.68e-05/0.3906, allocations: 27.94 kB / 0.9825 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.393, allocations: 0.9212 MB / 0.9834 GB, free: 10.79 MB / 0.6355 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.006776/0.3998, allocations: 4.64 MB / 0.988 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003636/0.4035, allocations: 0.9342 MB / 0.9889 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007837/0.4043, allocations: 338 kB / 0.9892 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006981/0.405, allocations: 0.9145 MB / 0.9901 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.405, allocations: 35 kB / 0.9901 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=47): time 3.387e-06/0.4051, allocations: 0 / 0.9901 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of matching and sorting (n=47): time 0.007959/0.413, allocations: 2.018 MB / 0.9921 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4131, allocations: 55.84 kB / 0.9922 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.4147, allocations: 1.047 MB / 0.9932 GB, free: 228 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.289e-05/0.4148, allocations: 37.7 kB / 0.9932 GB, free: 184 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004646/0.4153, allocations: 0.5158 MB / 0.9937 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.4154, allocations: 161.6 kB / 0.9939 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.4155, allocations: 12 kB / 0.9939 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4156, allocations: 334 kB / 0.9942 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009118/0.4165, allocations: 324.9 kB / 0.9945 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001089/0.4176, allocations: 0.5367 MB / 0.995 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.4186, allocations: 368.6 kB / 0.9954 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4186, allocations: 3.938 kB / 0.9954 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003695/0.4223, allocations: 1.233 MB / 0.9966 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001586/0.4225, allocations: 205 kB / 0.9968 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4225, allocations: 4 kB / 0.9968 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.4238, allocations: 328.5 kB / 0.9971 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.4244, allocations: 139.8 kB / 0.9972 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.4259, allocations: 0.9405 MB / 0.9982 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.4273, allocations: 191.3 kB / 0.9983 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.403e-05/0.4274, allocations: 27.98 kB / 0.9984 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/0.4274, allocations: 4 kB / 0.9984 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003318/0.4307, allocations: 1.096 MB / 0.9994 GB, free: 9.609 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4308, allocations: 7.953 kB / 0.9995 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.4319, allocations: 328.9 kB / 0.9998 GB, free: 9.277 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005426/0.4324, allocations: 131.8 kB / 0.9999 GB, free: 9.148 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.4339, allocations: 0.9411 MB / 1.001 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.4351, allocations: 171.3 kB / 1.001 GB, free: 8.016 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.87e-05/0.4352, allocations: 31.98 kB / 1.001 GB, free: 7.984 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0007042/0.4359, allocations: 352.9 kB / 1.001 GB, free: 7.629 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.4361, allocations: 122.5 kB / 1.001 GB, free: 7.508 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003902/0.44, allocations: 1.221 MB / 1.003 GB, free: 6.273 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.391e-05/0.4401, allocations: 7.984 kB / 1.003 GB, free: 6.266 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.4401, allocations: 4 kB / 1.003 GB, free: 6.262 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4401, allocations: 7.938 kB / 1.003 GB, free: 6.254 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005296/0.4454, allocations: 2.31 MB / 1.005 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.4454, allocations: 4 kB / 1.005 GB, free: 3.852 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003183/0.4458, allocations: 80.16 kB / 1.005 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.4468, allocations: 323.5 kB / 1.005 GB, free: 3.457 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.4469, allocations: 19.98 kB / 1.005 GB, free: 3.438 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.4484, allocations: 0.9659 MB / 1.006 GB, free: 2.445 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4484, allocations: 4.031 kB / 1.006 GB, free: 2.441 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004497/0.4529, allocations: 1.453 MB / 1.008 GB, free: 0.9414 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005869/0.4535, allocations: 287.4 kB / 1.008 GB, free: 0.6406 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4536, allocations: 12 kB / 1.008 GB, free: 0.6289 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009009/0.4545, allocations: 119.8 kB / 1.008 GB, free: 0.5117 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.83e-05/0.4546, allocations: 47.8 kB / 1.008 GB, free: 476 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.4547, allocations: 27.97 kB / 1.008 GB, free: 448 kB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.00122/0.4559, allocations: 0.7313 MB / 1.009 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4559, allocations: 4 kB / 1.009 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001501/0.4574, allocations: 0.5497 MB / 1.009 GB, free: 15.14 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.004573/0.462, allocations: 2.12 MB / 1.012 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003247/0.4653, allocations: 1.206 MB / 1.013 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4653, allocations: 0 / 1.013 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0009167/0.4662, allocations: 391 kB / 1.013 GB, free: 11.38 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.4687, allocations: 0.52 MB / 1.014 GB, free: 10.86 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/0.4845, allocations: 6.929 MB / 1.02 GB, free: 3.625 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008232/0.4853, allocations: 1.062 MB / 1.021 GB, free: 2.531 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.001188/0.4865, allocations: 236.8 kB / 1.022 GB, free: 2.297 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005683/0.4871, allocations: 415.2 kB / 1.022 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of SimCode: time 9.92e-07/0.4871, allocations: 0 / 1.022 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08325/0.5704, allocations: 33.87 MB / 1.055 GB, free: 408 kB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/0.5707, allocations: 265.7 kB / 1.055 GB, free: 52 kB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.242/3.813, allocations: 0 / 1.055 GB, free: 52 kB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)