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.001652/0.001652, allocations: 112.5 kB / 15.73 MB, free: 76 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.001168/0.001168, allocations: 188.3 kB / 16.66 MB, free: 6.582 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.27/1.27, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7463/0.7463, allocations: 132.2 MB / 422.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.91 kB / 0.5809 GB, free: 8.059 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3883, allocations: 80.21 MB / 0.6592 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.Carnot_y): time 0.06477/0.4531, allocations: 75.16 MB / 0.7326 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02003/0.4732, allocations: 15.14 MB / 0.7474 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/0.4757, allocations: 67.62 kB / 0.7474 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.4778, allocations: 0.8579 MB / 0.7483 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006363/0.4842, allocations: 2.716 MB / 0.7509 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003055/0.4872, allocations: 1.393 MB / 0.7523 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004998/0.4922, allocations: 4.411 MB / 0.7566 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002022/0.4943, allocations: 1.46 MB / 0.758 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003614/0.4979, allocations: 1.676 MB / 0.7597 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.5, allocations: 1.217 MB / 0.7608 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003814/0.5004, allocations: 164 kB / 0.761 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003142/0.5035, allocations: 1.408 MB / 0.7624 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004286/0.504, allocations: 394.6 kB / 0.7628 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.5051, allocations: 0.9099 MB / 0.7636 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003716/0.5088, allocations: 2.896 MB / 0.7665 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5088, allocations: 0 / 0.7665 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5088, allocations: 0 / 0.7665 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.621e-05/0.5089, allocations: 0 / 0.7665 GB, free: 7.973 MB / 0.5919 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.003516/0.5124, allocations: 2.143 MB / 0.7686 GB, free: 5.762 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.5124, allocations: 8.031 kB / 0.7686 GB, free: 5.754 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.5126, allocations: 148.1 kB / 0.7687 GB, free: 5.602 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/0.5134, allocations: 243.5 kB / 0.7689 GB, free: 5.363 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.5159, allocations: 1.54 MB / 0.7704 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.374e-05/0.516, allocations: 78 kB / 0.7705 GB, free: 3.695 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.5161, allocations: 100 kB / 0.7706 GB, free: 3.598 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.518, allocations: 1.104 MB / 0.7717 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.518, allocations: 0 / 0.7717 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.5181, allocations: 36 kB / 0.7717 GB, free: 2.422 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.5181, allocations: 35.94 kB / 0.7718 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.52, allocations: 0.8938 MB / 0.7726 GB, free: 1.492 MB / 0.5919 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.005577/0.5255, allocations: 4.924 MB / 0.7774 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.5269, allocations: 0.6125 MB / 0.778 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006662/0.5276, allocations: 353.1 kB / 0.7784 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005685/0.5282, allocations: 0.8277 MB / 0.7792 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.5282, allocations: 39.12 kB / 0.7792 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=61): time 2.815e-06/0.5282, allocations: 4 kB / 0.7792 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61): time 0.007015/0.5352, allocations: 1.698 MB / 0.7809 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.5353, allocations: 55.97 kB / 0.7809 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.5369, allocations: 1.234 MB / 0.7821 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.537, allocations: 37.7 kB / 0.7822 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004584/0.5375, allocations: 0.6191 MB / 0.7828 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.5377, allocations: 226 kB / 0.783 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/0.5379, allocations: 162.6 kB / 0.7832 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.979e-05/0.538, allocations: 337.9 kB / 0.7835 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006356/0.5386, allocations: 288.7 kB / 0.7838 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.5394, allocations: 0.489 MB / 0.7842 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.5408, allocations: 0.7051 MB / 0.7849 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.5408, allocations: 0 / 0.7849 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004508/0.5453, allocations: 1.282 MB / 0.7862 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.5453, allocations: 8 kB / 0.7862 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.5453, allocations: 4 kB / 0.7862 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005678/0.5459, allocations: 140.8 kB / 0.7863 GB, free: 2.785 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/0.5465, allocations: 155.8 kB / 0.7865 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007786/0.5473, allocations: 0.7006 MB / 0.7871 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009635/0.5483, allocations: 123.4 kB / 0.7873 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/0.5483, allocations: 35.98 kB / 0.7873 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00101/0.5494, allocations: 0.5455 MB / 0.7878 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007786/0.5501, allocations: 0.4967 MB / 0.7883 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001311/0.5515, allocations: 0.705 MB / 0.789 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/0.5515, allocations: 0 / 0.789 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004413/0.5559, allocations: 1.274 MB / 0.7903 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.5559, allocations: 16 kB / 0.7903 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5559, allocations: 8 kB / 0.7903 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004681/0.5564, allocations: 136.7 kB / 0.7904 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005712/0.557, allocations: 151.8 kB / 0.7905 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00075/0.5577, allocations: 0.7045 MB / 0.7912 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009797/0.5587, allocations: 103.7 kB / 0.7913 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/0.5588, allocations: 31.98 kB / 0.7914 GB, free: 13.41 MB / 0.6231 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.0002275/0.559, allocations: 230 kB / 0.7916 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.5593, allocations: 143.1 kB / 0.7917 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004501/0.5638, allocations: 1.26 MB / 0.793 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.5638, allocations: 12 kB / 0.793 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5638, allocations: 0 / 0.793 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00392/0.5677, allocations: 1.103 MB / 0.794 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006196/0.5739, allocations: 2.622 MB / 0.7966 GB, free: 7.879 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.574, allocations: 0 / 0.7966 GB, free: 7.879 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.5744, allocations: 116.2 kB / 0.7967 GB, free: 7.766 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004526/0.5749, allocations: 138.3 kB / 0.7968 GB, free: 7.629 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.5749, allocations: 20 kB / 0.7969 GB, free: 7.609 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004739/0.5797, allocations: 2.625 MB / 0.7994 GB, free: 4.836 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5797, allocations: 4 kB / 0.7994 GB, free: 4.832 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005107/0.5848, allocations: 1.712 MB / 0.8011 GB, free: 3.051 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005677/0.5854, allocations: 319.9 kB / 0.8014 GB, free: 2.719 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.5857, allocations: 12.11 kB / 0.8014 GB, free: 2.707 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000876/0.5866, allocations: 59.88 kB / 0.8015 GB, free: 2.648 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.5867, allocations: 68.3 kB / 0.8015 GB, free: 2.582 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-05/0.5868, allocations: 27.98 kB / 0.8016 GB, free: 2.555 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0013/0.5881, allocations: 0.8857 MB / 0.8024 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.81e-07/0.5881, allocations: 0 / 0.8024 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001822/0.5899, allocations: 0.729 MB / 0.8031 GB, free: 0.9375 MB / 0.6231 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.00614/0.596, allocations: 2.599 MB / 0.8057 GB, free: 14.28 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002622/0.5987, allocations: 1.117 MB / 0.8068 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.5987, allocations: 0 / 0.8068 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.6001, allocations: 0.5643 MB / 0.8073 GB, free: 12.58 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003642/0.6038, allocations: 0.7952 MB / 0.8081 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/0.6233, allocations: 9.876 MB / 0.8177 GB, free: 1.652 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007486/0.6241, allocations: 1.179 MB / 0.8189 GB, free: 456 kB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001121/0.6252, allocations: 306.8 kB / 0.8192 GB, free: 148 kB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007004/0.6259, allocations: 0.515 MB / 0.8197 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of SimCode: time 1.012e-06/0.626, allocations: 4 kB / 0.8197 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07344/0.6994, allocations: 42.56 MB / 0.8613 GB, free: 5.566 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.35, allocations: 15.55 kB / 0.8613 GB, free: 5.551 MB / 0.6856 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)