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.001275/0.001275, allocations: 101.9 kB / 16.27 MB, free: 5.93 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.001175/0.001175, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.315/1.315, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7392/0.7392, allocations: 122.9 MB / 413.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 59.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3503, allocations: 77.92 MB / 0.5673 GB, free: 32.84 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05135/0.4017, allocations: 61.14 MB / 0.627 GB, free: 13.53 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.4182, allocations: 12 MB / 0.6387 GB, free: 1.496 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/0.4206, allocations: 59.62 kB / 0.6388 GB, free: 1.438 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.423, allocations: 0.6792 MB / 0.6394 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006202/0.4292, allocations: 1.961 MB / 0.6413 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00327/0.4325, allocations: 1.209 MB / 0.6425 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004635/0.4372, allocations: 3.075 MB / 0.6455 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.4389, allocations: 1.094 MB / 0.6466 GB, free: 9.375 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003068/0.442, allocations: 1.323 MB / 0.6479 GB, free: 8.051 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.4438, allocations: 0.8983 MB / 0.6488 GB, free: 7.148 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004302/0.4442, allocations: 116 kB / 0.6489 GB, free: 7.035 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003126/0.4473, allocations: 1.435 MB / 0.6503 GB, free: 5.598 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004343/0.4478, allocations: 286.9 kB / 0.6505 GB, free: 5.316 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.4489, allocations: 0.6958 MB / 0.6512 GB, free: 4.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00343/0.4524, allocations: 2.259 MB / 0.6534 GB, free: 2.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4524, allocations: 0 / 0.6534 GB, free: 2.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4524, allocations: 0 / 0.6534 GB, free: 2.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.332e-05/0.4525, allocations: 8 kB / 0.6534 GB, free: 2.344 MB / 494.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.003268/0.4557, allocations: 1.715 MB / 0.6551 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.4558, allocations: 12.62 kB / 0.6551 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.456, allocations: 126.8 kB / 0.6552 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.4581, allocations: 410.8 kB / 0.6556 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.4601, allocations: 1.109 MB / 0.6567 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000353/0.4605, allocations: 117.9 kB / 0.6568 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.4606, allocations: 80 kB / 0.6569 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.4625, allocations: 1.001 MB / 0.6579 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.4626, allocations: 4 kB / 0.6579 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.575e-05/0.4626, allocations: 32 kB / 0.6579 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.4627, allocations: 20 kB / 0.6579 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.4649, allocations: 0.8664 MB / 0.6588 GB, free: 12.68 MB / 0.4981 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.006075/0.471, allocations: 5.272 MB / 0.6639 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.4743, allocations: 0.8007 MB / 0.6647 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007069/0.4751, allocations: 296.7 kB / 0.665 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006069/0.4757, allocations: 0.9102 MB / 0.6659 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4757, allocations: 46.44 kB / 0.6659 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=43): time 2.835e-06/0.4757, allocations: 0 / 0.6659 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43): time 0.008877/0.4846, allocations: 1.91 MB / 0.6678 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.4847, allocations: 55.41 kB / 0.6678 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001842/0.4865, allocations: 1.079 MB / 0.6689 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.804e-05/0.4866, allocations: 37.69 kB / 0.6689 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.4871, allocations: 0.5311 MB / 0.6695 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.4873, allocations: 153.8 kB / 0.6696 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.4875, allocations: 138.1 kB / 0.6697 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.4876, allocations: 326 kB / 0.67 GB, free: 480 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000895/0.4885, allocations: 315.3 kB / 0.6703 GB, free: 160 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.4897, allocations: 0.5425 MB / 0.6709 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.4914, allocations: 0.725 MB / 0.6716 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.4914, allocations: 4 kB / 0.6716 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002904/0.4943, allocations: 1.024 MB / 0.6726 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.4944, allocations: 8 kB / 0.6726 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4944, allocations: 8 kB / 0.6726 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4958, allocations: 316.7 kB / 0.6729 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005499/0.4963, allocations: 131.8 kB / 0.673 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.4978, allocations: 0.9205 MB / 0.6739 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.4991, allocations: 157.1 kB / 0.6741 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.103e-05/0.4992, allocations: 31.98 kB / 0.6741 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001191/0.5004, allocations: 0.5128 MB / 0.6746 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001079/0.5015, allocations: 0.5385 MB / 0.6751 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001679/0.5032, allocations: 0.7141 MB / 0.6758 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.46e-06/0.5032, allocations: 0 / 0.6758 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.002827/0.506, allocations: 1.023 MB / 0.6768 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.506, allocations: 10.19 kB / 0.6768 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.5061, allocations: 4 kB / 0.6768 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.5072, allocations: 320.6 kB / 0.6772 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005412/0.5077, allocations: 123.8 kB / 0.6773 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.5092, allocations: 0.9132 MB / 0.6782 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.5104, allocations: 135.6 kB / 0.6783 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.5105, allocations: 27.98 kB / 0.6783 GB, free: 7.566 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 56 * 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.0002236/0.5108, allocations: 232.9 kB / 0.6785 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002647/0.511, allocations: 110.6 kB / 0.6786 GB, free: 7.223 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003883/0.5149, allocations: 1.1 MB / 0.6797 GB, free: 6.109 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.5149, allocations: 11.94 kB / 0.6797 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.515, allocations: 0 / 0.6797 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.515, allocations: 3.984 kB / 0.6797 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005209/0.5202, allocations: 2.15 MB / 0.6818 GB, free: 3.859 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.5202, allocations: 7.984 kB / 0.6818 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.5205, allocations: 63.89 kB / 0.6819 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.5215, allocations: 304.7 kB / 0.6822 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.5216, allocations: 8 kB / 0.6822 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.523, allocations: 0.9464 MB / 0.6831 GB, free: 2.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.523, allocations: 4.031 kB / 0.6831 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.5266, allocations: 1.164 MB / 0.6843 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/0.5271, allocations: 263.5 kB / 0.6845 GB, free: 1.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.5273, allocations: 16 kB / 0.6845 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008734/0.5281, allocations: 79.84 kB / 0.6846 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.523e-05/0.5282, allocations: 43.83 kB / 0.6846 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.493e-05/0.5283, allocations: 23.98 kB / 0.6847 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001208/0.5295, allocations: 0.7473 MB / 0.6854 GB, free: 104 kB / 0.5137 GB Notification: Performance of sort global known variables: time 2.545e-06/0.5295, allocations: 4 kB / 0.6854 GB, free: 100 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00158/0.5311, allocations: 0.5692 MB / 0.686 GB, free: 15.52 MB / 0.5294 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.004522/0.5356, allocations: 1.972 MB / 0.6879 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003341/0.539, allocations: 1.156 MB / 0.689 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.539, allocations: 0 / 0.689 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009037/0.5399, allocations: 354.3 kB / 0.6894 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/0.5426, allocations: 0.5104 MB / 0.6899 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01689/0.5595, allocations: 8.74 MB / 0.6984 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006052/0.5602, allocations: 1.065 MB / 0.6994 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0009738/0.5612, allocations: 223.8 kB / 0.6996 GB, free: 1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004951/0.5617, allocations: 403.3 kB / 0.7 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of SimCode: time 6.01e-07/0.5617, allocations: 0 / 0.7 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2674/0.8291, allocations: 33.35 MB / 0.7326 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/12.07, allocations: 6.031 kB / 0.7326 GB, free: 15.65 MB / 0.5762 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)