Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon",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.004985/0.004985, allocations: 100.8 kB / 15.87 MB, free: 6.312 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.00128/0.00128, allocations: 194.5 kB / 16.79 MB, free: 6.242 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.23/1.23, allocations: 222.9 MB / 240.5 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6136/0.6136, allocations: 115.3 MB / 406 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.001141, allocations: 64.22 kB / 493 MB, free: 6.727 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1181, allocations: 76.18 MB / 0.5558 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.2533/0.3715, allocations: 60.77 MB / 0.6152 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.3868, allocations: 12.07 MB / 0.627 GB, free: 7.992 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002137/0.3889, allocations: 52.09 kB / 0.627 GB, free: 7.973 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001589/0.3906, allocations: 0.5517 MB / 0.6276 GB, free: 7.641 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004448/0.395, allocations: 1.807 MB / 0.6293 GB, free: 6.559 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.3976, allocations: 1.068 MB / 0.6304 GB, free: 5.812 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004075/0.4017, allocations: 3.905 MB / 0.6342 GB, free: 3.629 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.4029, allocations: 0.923 MB / 0.6351 GB, free: 3.035 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.4048, allocations: 1.158 MB / 0.6362 GB, free: 2.359 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009411/0.4057, allocations: 0.8927 MB / 0.6371 GB, free: 1.828 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.4058, allocations: 57.59 kB / 0.6371 GB, free: 1.828 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.4081, allocations: 1.343 MB / 0.6384 GB, free: 1.07 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.4084, allocations: 231.5 kB / 0.6387 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00055/0.4089, allocations: 0.6446 MB / 0.6393 GB, free: 488 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00227/0.4112, allocations: 2.225 MB / 0.6415 GB, free: 15.01 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.4112, allocations: 0 / 0.6415 GB, free: 15.01 MB / 478.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.4112, allocations: 0 / 0.6415 GB, free: 15.01 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.4113, allocations: 4 kB / 0.6415 GB, free: 15.01 MB / 478.1 MB 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.002648/0.4139, allocations: 1.718 MB / 0.6432 GB, free: 13.68 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.414, allocations: 11.69 kB / 0.6432 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.4141, allocations: 125.7 kB / 0.6433 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/0.4161, allocations: 410 kB / 0.6437 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001747/0.4178, allocations: 1.125 MB / 0.6448 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/0.4182, allocations: 118.6 kB / 0.6449 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.836e-05/0.4183, allocations: 84.66 kB / 0.645 GB, free: 12.39 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.42, allocations: 0.9725 MB / 0.6459 GB, free: 11.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.42, allocations: 6.281 kB / 0.6459 GB, free: 11.76 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.864e-05/0.4201, allocations: 32.66 kB / 0.646 GB, free: 11.74 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.4201, allocations: 21.62 kB / 0.646 GB, free: 11.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.4221, allocations: 0.8661 MB / 0.6468 GB, free: 11.02 MB / 478.1 MB 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.005356/0.4275, allocations: 4.85 MB / 0.6516 GB, free: 5.812 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003087/0.4306, allocations: 0.7843 MB / 0.6523 GB, free: 5.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006706/0.4313, allocations: 304.6 kB / 0.6526 GB, free: 4.719 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005821/0.4319, allocations: 0.9102 MB / 0.6535 GB, free: 3.605 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.4319, allocations: 54.42 kB / 0.6536 GB, free: 3.543 MB / 478.1 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.4319, allocations: 0 / 0.6536 GB, free: 3.543 MB / 478.1 MB Notification: Performance of matching and sorting (n=43): time 0.007546/0.4395, allocations: 1.907 MB / 0.6554 GB, free: 1.605 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.4395, allocations: 59.41 kB / 0.6555 GB, free: 1.535 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.4408, allocations: 1.044 MB / 0.6565 GB, free: 488 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/0.4409, allocations: 37.7 kB / 0.6565 GB, free: 444 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003605/0.4412, allocations: 0.5195 MB / 0.657 GB, free: 15.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.4413, allocations: 153.8 kB / 0.6572 GB, free: 15.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.4415, allocations: 134.1 kB / 0.6573 GB, free: 15.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4417, allocations: 322 kB / 0.6576 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008057/0.4425, allocations: 302.9 kB / 0.6579 GB, free: 15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009495/0.4434, allocations: 0.5103 MB / 0.6584 GB, free: 14.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.4449, allocations: 0.6856 MB / 0.6591 GB, free: 13.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.4449, allocations: 4 kB / 0.6591 GB, free: 13.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002315/0.4472, allocations: 0.9851 MB / 0.66 GB, free: 12.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.4473, allocations: 8 kB / 0.66 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4473, allocations: 4 kB / 0.6601 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.4484, allocations: 314.1 kB / 0.6604 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004877/0.4489, allocations: 115.9 kB / 0.6605 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.4503, allocations: 0.9151 MB / 0.6614 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.4514, allocations: 171.3 kB / 0.6615 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.4515, allocations: 27.98 kB / 0.6615 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001031/0.4525, allocations: 0.5088 MB / 0.662 GB, free: 10.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000902/0.4534, allocations: 0.5118 MB / 0.6625 GB, free: 9.984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001414/0.4548, allocations: 0.6681 MB / 0.6632 GB, free: 9.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.216e-06/0.4549, allocations: 7.984 kB / 0.6632 GB, free: 9.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.002282/0.4571, allocations: 0.9768 MB / 0.6642 GB, free: 8.262 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.4572, allocations: 11.94 kB / 0.6642 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4572, allocations: 4 kB / 0.6642 GB, free: 8.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009491/0.4581, allocations: 301 kB / 0.6645 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.4586, allocations: 119.8 kB / 0.6646 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.4599, allocations: 0.9093 MB / 0.6655 GB, free: 6.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.4611, allocations: 163.6 kB / 0.6656 GB, free: 6.738 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.802e-05/0.4611, allocations: 31.98 kB / 0.6656 GB, free: 6.707 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.4613, allocations: 221.9 kB / 0.6659 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.4615, allocations: 110.7 kB / 0.666 GB, free: 6.375 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003363/0.4648, allocations: 1.1 MB / 0.667 GB, free: 5.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.4649, allocations: 4 kB / 0.667 GB, free: 5.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4649, allocations: 7.938 kB / 0.6671 GB, free: 5.242 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4649, allocations: 3.984 kB / 0.6671 GB, free: 5.238 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004476/0.4694, allocations: 2.159 MB / 0.6692 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.4694, allocations: 4 kB / 0.6692 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.4696, allocations: 64.17 kB / 0.6692 GB, free: 2.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009011/0.4706, allocations: 303.4 kB / 0.6695 GB, free: 2.633 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.4706, allocations: 19.98 kB / 0.6695 GB, free: 2.613 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.4719, allocations: 0.9481 MB / 0.6705 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4719, allocations: 7.984 kB / 0.6705 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003155/0.4751, allocations: 1.167 MB / 0.6716 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003261/0.4754, allocations: 259.5 kB / 0.6719 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.4756, allocations: 12 kB / 0.6719 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008439/0.4764, allocations: 95.88 kB / 0.672 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.4765, allocations: 44.03 kB / 0.672 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.4766, allocations: 23.98 kB / 0.672 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001032/0.4776, allocations: 0.735 MB / 0.6727 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4776, allocations: 4 kB / 0.6727 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001376/0.479, allocations: 0.5574 MB / 0.6733 GB, free: 14.66 MB / 0.4981 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 (33): * Single equations (assignments): 28 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003978/0.483, allocations: 1.963 MB / 0.6752 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002821/0.4858, allocations: 1.101 MB / 0.6763 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4858, allocations: 0 / 0.6763 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007993/0.4866, allocations: 346.5 kB / 0.6766 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.4887, allocations: 0.4918 MB / 0.6771 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.5051, allocations: 8.936 MB / 0.6858 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005218/0.5057, allocations: 1.065 MB / 0.6869 GB, free: 276 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008223/0.5065, allocations: 224.6 kB / 0.6871 GB, free: 48 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004649/0.507, allocations: 403.4 kB / 0.6875 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of SimCode: time 3.8e-07/0.507, allocations: 0 / 0.6875 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.694/1.201, allocations: 31.94 MB / 0.7187 GB, free: 128 kB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/1.201, allocations: 264.8 kB / 0.7189 GB, free: 15.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.49/3.691, allocations: 3.938 kB / 0.7189 GB, free: 15.76 MB / 0.545 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)