Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/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_y,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="IDEAS_IDEAS_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.001669/0.001669, allocations: 108 kB / 15.61 MB, free: 152 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.002392/0.002392, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7281/0.7281, allocations: 132.2 MB / 422.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 68.08 kB / 0.5019 GB, free: 3.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3436, allocations: 80.19 MB / 0.5802 GB, free: 4.453 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06623/0.4099, allocations: 75.17 MB / 0.6536 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.4285, allocations: 15.14 MB / 0.6684 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002403/0.431, allocations: 67.62 kB / 0.6684 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.433, allocations: 0.8305 MB / 0.6693 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006265/0.4393, allocations: 2.585 MB / 0.6718 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003086/0.4424, allocations: 1.377 MB / 0.6731 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004923/0.4474, allocations: 4.397 MB / 0.6774 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/0.4494, allocations: 1.453 MB / 0.6788 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003236/0.4527, allocations: 1.628 MB / 0.6804 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001836/0.4545, allocations: 1.217 MB / 0.6816 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003934/0.4549, allocations: 160 kB / 0.6818 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002864/0.4578, allocations: 1.404 MB / 0.6831 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000465/0.4583, allocations: 394.6 kB / 0.6835 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.4595, allocations: 0.9099 MB / 0.6844 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003901/0.4634, allocations: 2.84 MB / 0.6872 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4634, allocations: 0 / 0.6872 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4634, allocations: 3.938 kB / 0.6872 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.32e-05/0.4635, allocations: 0 / 0.6872 GB, free: 3.543 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.003899/0.4674, allocations: 2.095 MB / 0.6892 GB, free: 1.383 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.4674, allocations: 12.03 kB / 0.6892 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.4676, allocations: 156.1 kB / 0.6894 GB, free: 1.211 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000826/0.4685, allocations: 226.8 kB / 0.6896 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.4707, allocations: 1.45 MB / 0.691 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.541e-05/0.4708, allocations: 81.94 kB / 0.6911 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.471, allocations: 104 kB / 0.6912 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.4728, allocations: 1.1 MB / 0.6923 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.4729, allocations: 0 / 0.6923 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.618e-05/0.473, allocations: 44 kB / 0.6923 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.118e-05/0.473, allocations: 31.98 kB / 0.6923 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.4748, allocations: 0.8939 MB / 0.6932 GB, free: 13.2 MB / 0.5294 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.005455/0.4803, allocations: 4.946 MB / 0.698 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.4816, allocations: 0.6141 MB / 0.6986 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006519/0.4823, allocations: 350.3 kB / 0.699 GB, free: 7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005718/0.4828, allocations: 0.8238 MB / 0.6998 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.4829, allocations: 51 kB / 0.6998 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=61): time 2.595e-06/0.4829, allocations: 0 / 0.6998 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of matching and sorting (n=61): time 0.006882/0.4898, allocations: 1.697 MB / 0.7015 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.4899, allocations: 59.97 kB / 0.7015 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.4915, allocations: 1.23 MB / 0.7028 GB, free: 2.891 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/0.4916, allocations: 41.7 kB / 0.7028 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005374/0.4921, allocations: 0.6026 MB / 0.7034 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.4923, allocations: 216.9 kB / 0.7036 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.4926, allocations: 154.6 kB / 0.7037 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4927, allocations: 337.9 kB / 0.7041 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006327/0.4933, allocations: 292.6 kB / 0.7043 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007823/0.4941, allocations: 0.4905 MB / 0.7048 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.4954, allocations: 0.7129 MB / 0.7055 GB, free: 15.92 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4955, allocations: 0 / 0.7055 GB, free: 15.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004507/0.5, allocations: 1.265 MB / 0.7067 GB, free: 14.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5, allocations: 16.02 kB / 0.7068 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.5, allocations: 4 kB / 0.7068 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005433/0.5006, allocations: 128.8 kB / 0.7069 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/0.5011, allocations: 163.7 kB / 0.707 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007639/0.5019, allocations: 0.7045 MB / 0.7077 GB, free: 13.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009383/0.5029, allocations: 128.8 kB / 0.7079 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.452e-05/0.503, allocations: 32 kB / 0.7079 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001002/0.504, allocations: 0.5487 MB / 0.7084 GB, free: 12.89 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007885/0.5048, allocations: 0.489 MB / 0.7089 GB, free: 12.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001307/0.5061, allocations: 0.705 MB / 0.7096 GB, free: 11.57 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.777e-06/0.5061, allocations: 4 kB / 0.7096 GB, free: 11.56 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004538/0.5106, allocations: 1.261 MB / 0.7108 GB, free: 10.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.5107, allocations: 17.84 kB / 0.7108 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.5107, allocations: 4 kB / 0.7108 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.5112, allocations: 140.3 kB / 0.711 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.5117, allocations: 163.7 kB / 0.7111 GB, free: 9.973 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007285/0.5125, allocations: 0.7006 MB / 0.7118 GB, free: 9.246 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000981/0.5135, allocations: 107.5 kB / 0.7119 GB, free: 9.141 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.216e-05/0.5135, allocations: 31.98 kB / 0.7119 GB, free: 9.109 MB / 0.545 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.0002181/0.5137, allocations: 228.7 kB / 0.7122 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.514, allocations: 130.4 kB / 0.7123 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004563/0.5186, allocations: 1.267 MB / 0.7135 GB, free: 7.469 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.5186, allocations: 15.94 kB / 0.7135 GB, free: 7.453 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5186, allocations: 0 / 0.7135 GB, free: 7.453 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004117/0.5227, allocations: 1.103 MB / 0.7146 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006237/0.529, allocations: 2.61 MB / 0.7172 GB, free: 3.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.529, allocations: 4 kB / 0.7172 GB, free: 3.586 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.5295, allocations: 119.8 kB / 0.7173 GB, free: 3.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004456/0.5299, allocations: 128.8 kB / 0.7174 GB, free: 3.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.53, allocations: 19.98 kB / 0.7174 GB, free: 3.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004854/0.5348, allocations: 2.633 MB / 0.72 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.5349, allocations: 11.92 kB / 0.72 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00507/0.5399, allocations: 1.699 MB / 0.7217 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005106/0.5405, allocations: 311.2 kB / 0.722 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.5407, allocations: 16 kB / 0.722 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007974/0.5415, allocations: 51.94 kB / 0.722 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.5416, allocations: 64.3 kB / 0.7221 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.147e-05/0.5417, allocations: 31.98 kB / 0.7221 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001173/0.5429, allocations: 0.8818 MB / 0.723 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5429, allocations: 0 / 0.723 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001748/0.5446, allocations: 0.7213 MB / 0.7237 GB, free: 12.67 MB / 0.5606 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.005975/0.5506, allocations: 2.593 MB / 0.7262 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00262/0.5532, allocations: 1.149 MB / 0.7273 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.5533, allocations: 4 kB / 0.7274 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.5547, allocations: 0.576 MB / 0.7279 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.558, allocations: 0.7964 MB / 0.7287 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.5767, allocations: 10.49 MB / 0.7389 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006966/0.5775, allocations: 1.179 MB / 0.7401 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001165/0.5786, allocations: 307 kB / 0.7404 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006175/0.5793, allocations: 0.5149 MB / 0.7409 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/0.5793, allocations: 4 kB / 0.7409 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06964/0.6489, allocations: 42.31 MB / 0.7822 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.19, allocations: 3.375 kB / 0.7822 GB, free: 0.6875 MB / 0.6075 GB (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_HeatPumps_Examples_Carnot_y.fmu > IDEAS_IDEAS.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)