Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",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.004942/0.004942, allocations: 97.27 kB / 15.73 MB, free: 6.051 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.001157/0.001157, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9467/0.9467, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 75.88 kB / 0.5851 GB, free: 3.848 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.367, allocations: 80.9 MB / 0.6641 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06799/0.435, allocations: 70.46 MB / 0.733 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02485/0.4599, allocations: 18.9 MB / 0.7514 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00274/0.4627, allocations: 71.56 kB / 0.7515 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002474/0.4652, allocations: 0.8346 MB / 0.7523 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007711/0.4729, allocations: 3.014 MB / 0.7552 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004086/0.477, allocations: 1.653 MB / 0.7568 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005484/0.4825, allocations: 4.05 MB / 0.7608 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00217/0.4847, allocations: 1.453 MB / 0.7622 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004104/0.4889, allocations: 1.818 MB / 0.764 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002155/0.491, allocations: 1.18 MB / 0.7651 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003585/0.4914, allocations: 176 kB / 0.7653 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.4945, allocations: 1.416 MB / 0.7667 GB, free: 8.266 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004725/0.495, allocations: 386.6 kB / 0.7671 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.4962, allocations: 0.9216 MB / 0.768 GB, free: 6.961 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004857/0.5011, allocations: 3.139 MB / 0.771 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5011, allocations: 0 / 0.771 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5011, allocations: 0 / 0.771 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.688e-05/0.5012, allocations: 0 / 0.771 GB, free: 3.812 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: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.003706/0.5049, allocations: 2.083 MB / 0.7731 GB, free: 1.664 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.5049, allocations: 8.031 kB / 0.7731 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001902/0.5051, allocations: 156.6 kB / 0.7732 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002439/0.5076, allocations: 454.4 kB / 0.7737 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002839/0.5104, allocations: 1.568 MB / 0.7752 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.999e-05/0.5105, allocations: 78.03 kB / 0.7753 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.5107, allocations: 104 kB / 0.7754 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.5134, allocations: 1.313 MB / 0.7766 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.5135, allocations: 7.938 kB / 0.7767 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.5136, allocations: 43.94 kB / 0.7767 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.5136, allocations: 28 kB / 0.7767 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002853/0.5165, allocations: 1.101 MB / 0.7778 GB, free: 12.64 MB / 0.6075 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.009623/0.5261, allocations: 7.518 MB / 0.7851 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003367/0.5295, allocations: 0.8056 MB / 0.7859 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006651/0.5302, allocations: 286 kB / 0.7862 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00172/0.5319, allocations: 1.718 MB / 0.7879 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.532, allocations: 39 kB / 0.7879 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=48): time 2.265e-06/0.532, allocations: 0 / 0.7879 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=48): time 0.005264/0.5373, allocations: 1.347 MB / 0.7892 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.5373, allocations: 63.83 kB / 0.7893 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002753/0.5401, allocations: 1.545 MB / 0.7908 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.5402, allocations: 37.7 kB / 0.7908 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005815/0.5408, allocations: 0.6818 MB / 0.7915 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.541, allocations: 182.4 kB / 0.7917 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002968/0.5413, allocations: 170.5 kB / 0.7918 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5414, allocations: 341.9 kB / 0.7922 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/0.5426, allocations: 365.8 kB / 0.7925 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.5438, allocations: 0.6546 MB / 0.7932 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.5457, allocations: 0.8828 MB / 0.794 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.5457, allocations: 4 kB / 0.794 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003225/0.549, allocations: 1.202 MB / 0.7952 GB, free: 9.598 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.549, allocations: 8 kB / 0.7952 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.549, allocations: 8 kB / 0.7952 GB, free: 9.582 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009282/0.55, allocations: 216.7 kB / 0.7954 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/0.5508, allocations: 191.7 kB / 0.7956 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009343/0.5517, allocations: 0.7162 MB / 0.7963 GB, free: 8.438 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.5534, allocations: 227 kB / 0.7965 GB, free: 8.215 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.5535, allocations: 39.98 kB / 0.7965 GB, free: 8.176 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (84): * Single equations (assignments): 83 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0007881/0.5543, allocations: 363.1 kB / 0.7969 GB, free: 7.812 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003021/0.5546, allocations: 159 kB / 0.797 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/0.5572, allocations: 1.137 MB / 0.7982 GB, free: 6.496 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.5573, allocations: 8 kB / 0.7982 GB, free: 6.488 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5573, allocations: 0 / 0.7982 GB, free: 6.488 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.5573, allocations: 3.984 kB / 0.7982 GB, free: 6.484 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005932/0.5632, allocations: 2.514 MB / 0.8006 GB, free: 3.891 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.5633, allocations: 7.984 kB / 0.8006 GB, free: 3.883 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003899/0.5636, allocations: 83.88 kB / 0.8007 GB, free: 3.801 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007978/0.5645, allocations: 216.7 kB / 0.8009 GB, free: 3.586 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.5645, allocations: 19.98 kB / 0.8009 GB, free: 3.566 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.5659, allocations: 0.7669 MB / 0.8017 GB, free: 2.773 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5659, allocations: 4.031 kB / 0.8017 GB, free: 2.77 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003657/0.5696, allocations: 1.208 MB / 0.8029 GB, free: 1.527 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006647/0.5703, allocations: 359.8 kB / 0.8032 GB, free: 1.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000233/0.5705, allocations: 19.94 kB / 0.8032 GB, free: 1.137 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009676/0.5715, allocations: 67.92 kB / 0.8033 GB, free: 1.07 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.5716, allocations: 52.38 kB / 0.8033 GB, free: 1.02 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.346e-05/0.5717, allocations: 27.98 kB / 0.8034 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001882/0.5736, allocations: 1.09 MB / 0.8044 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of sort global known variables: time 3.4e-07/0.5736, allocations: 0 / 0.8044 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001406/0.575, allocations: 447.1 kB / 0.8049 GB, free: 15.46 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004945/0.58, allocations: 2.117 MB / 0.8069 GB, free: 13.31 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002264/0.5823, allocations: 0.8485 MB / 0.8078 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.5823, allocations: 4.297 kB / 0.8078 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.5837, allocations: 443.3 kB / 0.8082 GB, free: 12.02 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003449/0.5872, allocations: 0.7342 MB / 0.8089 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/0.6056, allocations: 10.5 MB / 0.8192 GB, free: 428 kB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008005/0.6064, allocations: 1.18 MB / 0.8203 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001047/0.6075, allocations: 268.1 kB / 0.8206 GB, free: 14.94 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007918/0.6083, allocations: 0.5461 MB / 0.8211 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of SimCode: time 9.52e-07/0.6083, allocations: 0 / 0.8211 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07701/0.6853, allocations: 43.72 MB / 0.8638 GB, free: 3.16 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.04, allocations: 6.953 kB / 0.8638 GB, free: 3.156 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > IDEAS_dev_IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)