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.00465/0.00465, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001289/0.001289, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8415/0.8415, allocations: 135.6 MB / 426.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 63.48 kB / 0.5857 GB, free: 21.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1412, allocations: 81.04 MB / 0.6649 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07817/0.2194, allocations: 70.44 MB / 0.7336 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3273/0.5467, allocations: 18.9 MB / 0.7521 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.5489, allocations: 71.03 kB / 0.7522 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.5507, allocations: 0.823 MB / 0.753 GB, free: 17.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006724/0.5575, allocations: 2.85 MB / 0.7558 GB, free: 17.29 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003421/0.5609, allocations: 1.652 MB / 0.7574 GB, free: 17.25 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005288/0.5662, allocations: 4.041 MB / 0.7613 GB, free: 17.24 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002135/0.5684, allocations: 1.455 MB / 0.7627 GB, free: 17.08 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003903/0.5723, allocations: 1.771 MB / 0.7645 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001927/0.5742, allocations: 1.183 MB / 0.7656 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.5745, allocations: 175.1 kB / 0.7658 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.5774, allocations: 1.417 MB / 0.7672 GB, free: 16.77 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000337/0.5778, allocations: 385.4 kB / 0.7675 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008626/0.5787, allocations: 0.9182 MB / 0.7684 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003599/0.5823, allocations: 3.135 MB / 0.7715 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5823, allocations: 1.031 kB / 0.7715 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.983e-06/0.5823, allocations: 3.047 kB / 0.7715 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.17e-05/0.5823, allocations: 0 / 0.7715 GB, free: 16.1 MB / 0.5762 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.002962/0.5853, allocations: 2.08 MB / 0.7735 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.5853, allocations: 11.7 kB / 0.7735 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001575/0.5855, allocations: 154.9 kB / 0.7737 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002193/0.5877, allocations: 456.9 kB / 0.7741 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.5899, allocations: 1.567 MB / 0.7757 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.419e-05/0.59, allocations: 78.06 kB / 0.7757 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.5901, allocations: 105.8 kB / 0.7758 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.5924, allocations: 1.312 MB / 0.7771 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.5924, allocations: 8.5 kB / 0.7771 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.5925, allocations: 48.14 kB / 0.7772 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.5926, allocations: 25.97 kB / 0.7772 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002607/0.5952, allocations: 1.095 MB / 0.7783 GB, free: 14.12 MB / 0.5762 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.006623/0.6018, allocations: 7.518 MB / 0.7856 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003153/0.605, allocations: 0.8128 MB / 0.7864 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/0.6056, allocations: 281.5 kB / 0.7867 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007949/0.6064, allocations: 1.722 MB / 0.7883 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.6064, allocations: 43.22 kB / 0.7884 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/0.6064, allocations: 0 / 0.7884 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.004625/0.611, allocations: 1.343 MB / 0.7897 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.936e-05/0.6111, allocations: 55.06 kB / 0.7897 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.613, allocations: 1.544 MB / 0.7913 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.613, allocations: 37.73 kB / 0.7913 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004087/0.6135, allocations: 0.6807 MB / 0.792 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.6136, allocations: 184.3 kB / 0.7921 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.6138, allocations: 184 kB / 0.7923 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.842e-05/0.6139, allocations: 332.8 kB / 0.7926 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009333/0.6148, allocations: 363.3 kB / 0.793 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.6159, allocations: 0.6572 MB / 0.7936 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.6176, allocations: 0.889 MB / 0.7945 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.6176, allocations: 2.594 kB / 0.7945 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002602/0.6202, allocations: 1.201 MB / 0.7957 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.6202, allocations: 8.156 kB / 0.7957 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.6202, allocations: 8.438 kB / 0.7957 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007897/0.621, allocations: 218.1 kB / 0.7959 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007283/0.6218, allocations: 196.7 kB / 0.7961 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006901/0.6225, allocations: 0.7228 MB / 0.7968 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.6239, allocations: 219.3 kB / 0.797 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-05/0.624, allocations: 44.23 kB / 0.797 GB, free: 1.617 MB / 0.5762 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.0003874/0.6244, allocations: 357.6 kB / 0.7974 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.6246, allocations: 155.6 kB / 0.7975 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/0.6268, allocations: 1.135 MB / 0.7986 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.6268, allocations: 12.41 kB / 0.7986 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.6268, allocations: 0 / 0.7986 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.6268, allocations: 3.984 kB / 0.7986 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005011/0.6318, allocations: 2.51 MB / 0.8011 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.6318, allocations: 0 / 0.8011 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.6322, allocations: 81.19 kB / 0.8012 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/0.633, allocations: 224.1 kB / 0.8014 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/0.633, allocations: 9.406 kB / 0.8014 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.6344, allocations: 0.7756 MB / 0.8021 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6344, allocations: 9.562 kB / 0.8022 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.6379, allocations: 1.208 MB / 0.8033 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005228/0.6384, allocations: 357.8 kB / 0.8037 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.6386, allocations: 17.56 kB / 0.8037 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009298/0.6396, allocations: 73.06 kB / 0.8038 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.206e-05/0.6397, allocations: 44.48 kB / 0.8038 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.554e-05/0.6397, allocations: 28.83 kB / 0.8038 GB, free: 13 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001615/0.6414, allocations: 1.086 MB / 0.8049 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6414, allocations: 0 / 0.8049 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001184/0.6426, allocations: 444.9 kB / 0.8053 GB, free: 12.3 MB / 0.5919 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.004719/0.6473, allocations: 2.131 MB / 0.8074 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002209/0.6495, allocations: 0.8647 MB / 0.8082 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6495, allocations: 3.312 kB / 0.8082 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.6509, allocations: 437.6 kB / 0.8087 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/0.6543, allocations: 0.7482 MB / 0.8094 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01841/0.6728, allocations: 10.49 MB / 0.8196 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009049/0.6737, allocations: 1.18 MB / 0.8208 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001104/0.6748, allocations: 259.1 kB / 0.821 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008342/0.6757, allocations: 0.5499 MB / 0.8216 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of SimCode: time 6.91e-07/0.6757, allocations: 0 / 0.8216 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08746/0.7632, allocations: 43.71 MB / 0.8643 GB, free: 3.859 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.83, allocations: 2.5 kB / 0.8643 GB, free: 3.859 MB / 0.6387 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)