Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.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_y,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatPumps_Examples_Carnot_y",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.001057/0.001057, allocations: 102.2 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.001199/0.001199, allocations: 187.7 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.284/1.284, 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.7183/0.7183, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 0.4912 GB, free: 7.387 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3117, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatPumps.Examples.Carnot_y): time 0.05826/0.37, allocations: 75.16 MB / 0.6407 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.3885, allocations: 15.17 MB / 0.6555 GB, free: 284 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002061/0.3906, allocations: 67.62 kB / 0.6555 GB, free: 216 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.3927, allocations: 0.8268 MB / 0.6564 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006098/0.3989, allocations: 2.585 MB / 0.6589 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.402, allocations: 1.389 MB / 0.6602 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004815/0.4068, allocations: 4.381 MB / 0.6645 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00192/0.4088, allocations: 1.451 MB / 0.6659 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003126/0.4119, allocations: 1.628 MB / 0.6675 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.4137, allocations: 1.21 MB / 0.6687 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.414, allocations: 164 kB / 0.6689 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.4168, allocations: 1.4 MB / 0.6702 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004245/0.4173, allocations: 398.6 kB / 0.6706 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001153/0.4184, allocations: 0.9022 MB / 0.6715 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003775/0.4222, allocations: 2.836 MB / 0.6743 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4222, allocations: 0 / 0.6743 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of FrontEnd: time 8.62e-07/0.4222, allocations: 4 kB / 0.6743 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.393e-05/0.4223, allocations: 0 / 0.6743 GB, free: 12.98 MB / 0.5137 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.00369/0.426, allocations: 2.083 MB / 0.6763 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.426, allocations: 8.031 kB / 0.6763 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.4262, allocations: 152.1 kB / 0.6764 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007645/0.427, allocations: 226.8 kB / 0.6767 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.4291, allocations: 1.458 MB / 0.6781 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.164e-05/0.4291, allocations: 74 kB / 0.6782 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000137/0.4293, allocations: 104 kB / 0.6783 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/0.4311, allocations: 1.1 MB / 0.6793 GB, free: 7.621 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.429e-05/0.4312, allocations: 7.938 kB / 0.6793 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-05/0.4313, allocations: 36 kB / 0.6794 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.4313, allocations: 28 kB / 0.6794 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/0.4332, allocations: 0.8939 MB / 0.6803 GB, free: 6.656 MB / 0.5137 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.005815/0.439, allocations: 4.945 MB / 0.6851 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.4404, allocations: 0.6196 MB / 0.6857 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006628/0.4411, allocations: 350.3 kB / 0.686 GB, free: 464 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005853/0.4417, allocations: 0.8277 MB / 0.6868 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.4417, allocations: 39.12 kB / 0.6869 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.024e-06/0.4417, allocations: 0 / 0.6869 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.007174/0.4489, allocations: 1.701 MB / 0.6885 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.449, allocations: 59.97 kB / 0.6886 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001501/0.4505, allocations: 1.23 MB / 0.6898 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.4505, allocations: 41.7 kB / 0.6898 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004612/0.451, allocations: 0.6066 MB / 0.6904 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.4512, allocations: 208.9 kB / 0.6906 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.4514, allocations: 158.5 kB / 0.6908 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4515, allocations: 337.9 kB / 0.6911 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006607/0.4522, allocations: 288.7 kB / 0.6914 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/0.453, allocations: 0.4928 MB / 0.6919 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.4544, allocations: 0.7129 MB / 0.6926 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4544, allocations: 0 / 0.6926 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004607/0.459, allocations: 1.269 MB / 0.6938 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.459, allocations: 12.03 kB / 0.6938 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.459, allocations: 4 kB / 0.6938 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.4596, allocations: 138.4 kB / 0.6939 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/0.4602, allocations: 155.8 kB / 0.6941 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007799/0.461, allocations: 0.7045 MB / 0.6948 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009225/0.4619, allocations: 125 kB / 0.6949 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.968e-05/0.462, allocations: 31.98 kB / 0.6949 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009869/0.463, allocations: 0.5526 MB / 0.6955 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007766/0.4638, allocations: 497.6 kB / 0.696 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00134/0.4651, allocations: 0.7012 MB / 0.6966 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.144e-06/0.4651, allocations: 3.938 kB / 0.6966 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004557/0.4697, allocations: 1.269 MB / 0.6979 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.4697, allocations: 14.41 kB / 0.6979 GB, free: 3.723 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.4697, allocations: 7.938 kB / 0.6979 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004623/0.4702, allocations: 132.7 kB / 0.698 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005537/0.4707, allocations: 159.8 kB / 0.6982 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007312/0.4715, allocations: 0.7041 MB / 0.6989 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009209/0.4724, allocations: 107.5 kB / 0.699 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.4725, allocations: 31.98 kB / 0.699 GB, free: 2.562 MB / 0.5294 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.0001921/0.4727, allocations: 228.1 kB / 0.6992 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.4729, allocations: 130.4 kB / 0.6993 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004608/0.4775, allocations: 1.267 MB / 0.7006 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.4775, allocations: 11.98 kB / 0.7006 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4775, allocations: 4 kB / 0.7006 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004087/0.4816, allocations: 1.099 MB / 0.7017 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006196/0.4878, allocations: 2.622 MB / 0.7042 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.4879, allocations: 4 kB / 0.7042 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/0.4884, allocations: 111.9 kB / 0.7043 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004664/0.4888, allocations: 136.7 kB / 0.7045 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/0.4889, allocations: 19.98 kB / 0.7045 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005088/0.494, allocations: 2.622 MB / 0.707 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.494, allocations: 4 kB / 0.7071 GB, free: 9.984 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005303/0.4993, allocations: 1.699 MB / 0.7087 GB, free: 8.215 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006554/0.5, allocations: 307.3 kB / 0.709 GB, free: 7.895 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.5002, allocations: 16 kB / 0.709 GB, free: 7.879 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007613/0.501, allocations: 59.97 kB / 0.7091 GB, free: 7.82 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.5011, allocations: 68.17 kB / 0.7091 GB, free: 7.754 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/0.5012, allocations: 31.98 kB / 0.7092 GB, free: 7.723 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001253/0.5024, allocations: 0.8818 MB / 0.71 GB, free: 6.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5024, allocations: 0 / 0.71 GB, free: 6.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001843/0.5043, allocations: 0.7135 MB / 0.7107 GB, free: 6.125 MB / 0.545 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.006074/0.5104, allocations: 2.6 MB / 0.7133 GB, free: 3.461 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002725/0.5131, allocations: 1.156 MB / 0.7144 GB, free: 2.309 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.5131, allocations: 0 / 0.7144 GB, free: 2.309 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.5146, allocations: 0.5642 MB / 0.7149 GB, free: 1.73 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/0.5181, allocations: 0.8112 MB / 0.7157 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.5372, allocations: 10.48 MB / 0.726 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007277/0.5379, allocations: 1.183 MB / 0.7271 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001219/0.5391, allocations: 307 kB / 0.7274 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006318/0.5398, allocations: 0.5188 MB / 0.7279 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.5398, allocations: 3.938 kB / 0.7279 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3306/0.8704, allocations: 42.27 MB / 0.7692 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/12.18, allocations: 13.45 kB / 0.7692 GB, free: 155.6 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y_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_y.fmu > IBPSA_latest_IBPSA.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)