Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon,fileNamePrefix="IDEAS_IDEAS_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.001019/0.001019, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.278/1.278, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7322/0.7322, allocations: 132.2 MB / 422.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.73 kB / 0.5019 GB, free: 3.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3653, allocations: 80.2 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon): time 0.05863/0.4239, allocations: 61.17 MB / 0.6399 GB, free: 4.227 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.4388, allocations: 11.97 MB / 0.6516 GB, free: 8.227 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.4406, allocations: 59.62 kB / 0.6517 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.4424, allocations: 0.6791 MB / 0.6523 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004685/0.4472, allocations: 1.963 MB / 0.6543 GB, free: 5.512 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003341/0.4505, allocations: 1.198 MB / 0.6554 GB, free: 4.324 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004271/0.4548, allocations: 3.079 MB / 0.6584 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.4564, allocations: 1.096 MB / 0.6595 GB, free: 112 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002996/0.4594, allocations: 1.32 MB / 0.6608 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.4609, allocations: 0.9023 MB / 0.6617 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.4612, allocations: 119.9 kB / 0.6618 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/0.464, allocations: 1.431 MB / 0.6632 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003824/0.4644, allocations: 294.8 kB / 0.6635 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.4655, allocations: 0.688 MB / 0.6641 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003687/0.4692, allocations: 2.275 MB / 0.6664 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.4692, allocations: 0 / 0.6664 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4692, allocations: 0 / 0.6664 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.905e-05/0.4692, allocations: 0 / 0.6664 GB, free: 9.07 MB / 0.4981 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.003776/0.473, allocations: 1.721 MB / 0.668 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4731, allocations: 16.02 kB / 0.668 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.4733, allocations: 122.9 kB / 0.6682 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002256/0.4755, allocations: 402.7 kB / 0.6686 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.4777, allocations: 1.112 MB / 0.6696 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003538/0.4781, allocations: 117.9 kB / 0.6697 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.4782, allocations: 91.98 kB / 0.6698 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.4802, allocations: 0.9976 MB / 0.6708 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.4802, allocations: 7.938 kB / 0.6708 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.939e-05/0.4803, allocations: 36 kB / 0.6709 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.4803, allocations: 20 kB / 0.6709 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002264/0.4826, allocations: 0.8663 MB / 0.6717 GB, free: 3.387 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.006109/0.4887, allocations: 5.263 MB / 0.6769 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003366/0.4921, allocations: 0.7974 MB / 0.6776 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007178/0.4928, allocations: 300.7 kB / 0.6779 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005765/0.4934, allocations: 0.9025 MB / 0.6788 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.4934, allocations: 38.52 kB / 0.6788 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=43): time 2.325e-06/0.4934, allocations: 3.938 kB / 0.6788 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=43): time 0.008524/0.502, allocations: 1.915 MB / 0.6807 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.502, allocations: 59.41 kB / 0.6808 GB, free: 9.473 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.5036, allocations: 1.079 MB / 0.6818 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.616e-05/0.5037, allocations: 33.7 kB / 0.6819 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.5041, allocations: 0.5273 MB / 0.6824 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.5042, allocations: 145.8 kB / 0.6825 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.5045, allocations: 142.1 kB / 0.6826 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.537e-05/0.5046, allocations: 329.9 kB / 0.683 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008879/0.5055, allocations: 315.2 kB / 0.6833 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.5065, allocations: 0.5385 MB / 0.6838 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/0.5082, allocations: 0.7328 MB / 0.6845 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.5082, allocations: 0 / 0.6845 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002744/0.511, allocations: 1.024 MB / 0.6855 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.511, allocations: 8 kB / 0.6855 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.511, allocations: 7.938 kB / 0.6855 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.5123, allocations: 316.7 kB / 0.6858 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005393/0.5129, allocations: 127.8 kB / 0.6859 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.5143, allocations: 0.9216 MB / 0.6868 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.5155, allocations: 155.2 kB / 0.687 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.5156, allocations: 31.98 kB / 0.687 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001192/0.5168, allocations: 0.5167 MB / 0.6875 GB, free: 2.301 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00105/0.5179, allocations: 0.5345 MB / 0.688 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001601/0.5195, allocations: 0.718 MB / 0.6887 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.246e-06/0.5195, allocations: 0 / 0.6887 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.00268/0.5222, allocations: 1.02 MB / 0.6897 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.5222, allocations: 11.98 kB / 0.6898 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.5222, allocations: 4 kB / 0.6898 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.5233, allocations: 312.6 kB / 0.6901 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005105/0.5238, allocations: 131.8 kB / 0.6902 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.5252, allocations: 0.9074 MB / 0.6911 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.5265, allocations: 135.6 kB / 0.6912 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.221e-05/0.5266, allocations: 35.92 kB / 0.6912 GB, free: 14.29 MB / 0.5294 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.0002563/0.5268, allocations: 216.1 kB / 0.6914 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/0.5271, allocations: 126.5 kB / 0.6916 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.5308, allocations: 1.094 MB / 0.6926 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.5309, allocations: 4 kB / 0.6926 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5309, allocations: 7.938 kB / 0.6926 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.5309, allocations: 7.984 kB / 0.6926 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.5359, allocations: 2.159 MB / 0.6948 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5359, allocations: 4.281 kB / 0.6948 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.5362, allocations: 63.89 kB / 0.6948 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009603/0.5371, allocations: 306.4 kB / 0.6951 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.5372, allocations: 12 kB / 0.6951 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.5386, allocations: 0.9464 MB / 0.696 GB, free: 9.227 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.5386, allocations: 4 kB / 0.6961 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.5421, allocations: 1.164 MB / 0.6972 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003863/0.5425, allocations: 263.5 kB / 0.6974 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.5427, allocations: 16 kB / 0.6975 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008242/0.5435, allocations: 75.91 kB / 0.6975 GB, free: 7.645 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.907e-05/0.5436, allocations: 43.83 kB / 0.6976 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.65e-05/0.5437, allocations: 19.98 kB / 0.6976 GB, free: 7.582 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001111/0.5448, allocations: 0.7551 MB / 0.6983 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5448, allocations: 0 / 0.6983 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001446/0.5463, allocations: 0.5614 MB / 0.6989 GB, free: 6.258 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.004485/0.5508, allocations: 1.982 MB / 0.7008 GB, free: 4.23 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003165/0.5539, allocations: 1.155 MB / 0.7019 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.554, allocations: 0 / 0.7019 GB, free: 3.074 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008581/0.5548, allocations: 355 kB / 0.7023 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.557, allocations: 0.5122 MB / 0.7028 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/0.5726, allocations: 8.727 MB / 0.7113 GB, free: 9.043 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.5731, allocations: 1.061 MB / 0.7123 GB, free: 7.953 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008573/0.574, allocations: 220.6 kB / 0.7125 GB, free: 7.738 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004861/0.5745, allocations: 411.3 kB / 0.7129 GB, free: 7.336 MB / 0.545 GB Notification: Performance of SimCode: time 6.82e-07/0.5745, allocations: 0 / 0.7129 GB, free: 7.336 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05905/0.6336, allocations: 33.35 MB / 0.7455 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.98, allocations: 7.938 kB / 0.7455 GB, free: 6.426 MB / 0.5762 GB (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_TCon.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1)