Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,fileNamePrefix="BuildingSystems_BuildingSystems_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.003946/0.003946, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001184/0.001184, allocations: 194.2 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002555/0.002555, allocations: 278.4 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.061/1.061, allocations: 178.6 MB / 0.5074 GB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002736/0.002736, allocations: 92.73 kB / 0.6943 GB, free: 3.668 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3994, allocations: 89.14 MB / 0.7813 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.0755/0.4749, allocations: 70.44 MB / 0.8501 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0248/0.4997, allocations: 18.94 MB / 0.8686 GB, free: 5.723 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.5012, allocations: 71.56 kB / 0.8687 GB, free: 5.652 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001844/0.5031, allocations: 0.8228 MB / 0.8695 GB, free: 4.824 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005572/0.5087, allocations: 2.854 MB / 0.8723 GB, free: 1.957 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003335/0.5121, allocations: 1.649 MB / 0.8739 GB, free: 324 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004328/0.5164, allocations: 4.05 MB / 0.8778 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00178/0.5182, allocations: 1.453 MB / 0.8792 GB, free: 10.77 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003039/0.5212, allocations: 1.76 MB / 0.881 GB, free: 9 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.5228, allocations: 1.194 MB / 0.8821 GB, free: 7.801 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002367/0.5231, allocations: 172 kB / 0.8823 GB, free: 7.633 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.5255, allocations: 1.412 MB / 0.8837 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003827/0.5259, allocations: 398.6 kB / 0.8841 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009083/0.5268, allocations: 0.9137 MB / 0.8849 GB, free: 4.91 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003731/0.5306, allocations: 3.108 MB / 0.888 GB, free: 1.793 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.5306, allocations: 0 / 0.888 GB, free: 1.793 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5306, allocations: 0 / 0.888 GB, free: 1.793 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.463e-05/0.5306, allocations: 3.938 kB / 0.888 GB, free: 1.789 MB / 0.6387 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.003385/0.534, allocations: 2.091 MB / 0.89 GB, free: 15.63 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.5341, allocations: 12.03 kB / 0.89 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001993/0.5343, allocations: 152.6 kB / 0.8902 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/0.5366, allocations: 459.1 kB / 0.8906 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.5392, allocations: 1.56 MB / 0.8921 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.983e-05/0.5393, allocations: 82.03 kB / 0.8922 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.5395, allocations: 104 kB / 0.8923 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002618/0.5421, allocations: 1.317 MB / 0.8936 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.743e-05/0.5421, allocations: 4 kB / 0.8936 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.5422, allocations: 44 kB / 0.8937 GB, free: 11.74 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.864e-05/0.5423, allocations: 28 kB / 0.8937 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002844/0.5451, allocations: 1.1 MB / 0.8948 GB, free: 10.62 MB / 0.6544 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.008849/0.554, allocations: 7.514 MB / 0.9021 GB, free: 2.59 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003381/0.5574, allocations: 0.8112 MB / 0.9029 GB, free: 1.773 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006622/0.5581, allocations: 278 kB / 0.9031 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001474/0.5595, allocations: 1.722 MB / 0.9048 GB, free: 15.39 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.5596, allocations: 46.94 kB / 0.9049 GB, free: 15.33 MB / 0.67 GB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/0.5596, allocations: 0 / 0.9049 GB, free: 15.33 MB / 0.67 GB Notification: Performance of matching and sorting (n=48): time 0.004978/0.5646, allocations: 1.343 MB / 0.9062 GB, free: 13.96 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.5646, allocations: 55.84 kB / 0.9062 GB, free: 13.9 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002361/0.567, allocations: 1.546 MB / 0.9078 GB, free: 12.34 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.651e-05/0.5671, allocations: 37.7 kB / 0.9078 GB, free: 12.3 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006627/0.5677, allocations: 0.6857 MB / 0.9085 GB, free: 11.61 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.5679, allocations: 174.5 kB / 0.9086 GB, free: 11.44 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003015/0.5682, allocations: 174.5 kB / 0.9088 GB, free: 11.26 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.5684, allocations: 334 kB / 0.9091 GB, free: 10.93 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.5695, allocations: 365.7 kB / 0.9095 GB, free: 10.57 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.5708, allocations: 0.6546 MB / 0.9101 GB, free: 9.789 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.5728, allocations: 0.8906 MB / 0.911 GB, free: 8.793 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.5729, allocations: 4 kB / 0.911 GB, free: 8.789 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003092/0.576, allocations: 1.198 MB / 0.9121 GB, free: 7.578 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.576, allocations: 15.97 kB / 0.9122 GB, free: 7.562 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.576, allocations: 8 kB / 0.9122 GB, free: 7.555 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008692/0.5769, allocations: 220.5 kB / 0.9124 GB, free: 7.336 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008038/0.5777, allocations: 199.7 kB / 0.9126 GB, free: 7.141 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009635/0.5787, allocations: 0.7201 MB / 0.9133 GB, free: 6.395 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.5801, allocations: 223 kB / 0.9135 GB, free: 6.176 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.069e-05/0.5802, allocations: 43.98 kB / 0.9135 GB, free: 6.133 MB / 0.67 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.0005039/0.5807, allocations: 349.6 kB / 0.9139 GB, free: 5.781 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.5809, allocations: 159 kB / 0.914 GB, free: 5.625 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/0.5835, allocations: 1.128 MB / 0.9151 GB, free: 4.477 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/0.5836, allocations: 15.98 kB / 0.9151 GB, free: 4.461 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5836, allocations: 0 / 0.9151 GB, free: 4.461 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.5836, allocations: 3.984 kB / 0.9151 GB, free: 4.457 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0055/0.5891, allocations: 2.51 MB / 0.9176 GB, free: 1.867 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.5891, allocations: 4 kB / 0.9176 GB, free: 1.863 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.5895, allocations: 79.83 kB / 0.9177 GB, free: 1.785 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007759/0.5903, allocations: 220.8 kB / 0.9179 GB, free: 1.566 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.5903, allocations: 19.98 kB / 0.9179 GB, free: 1.547 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/0.5918, allocations: 0.7708 MB / 0.9186 GB, free: 0.75 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5918, allocations: 4.031 kB / 0.9186 GB, free: 0.7461 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00366/0.5955, allocations: 1.208 MB / 0.9198 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004896/0.596, allocations: 363.7 kB / 0.9202 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.5962, allocations: 12 kB / 0.9202 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009058/0.5971, allocations: 80.03 kB / 0.9203 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.5972, allocations: 40.5 kB / 0.9203 GB, free: 14.99 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.226e-05/0.5972, allocations: 31.92 kB / 0.9203 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001787/0.599, allocations: 1.082 MB / 0.9214 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5991, allocations: 0 / 0.9214 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001104/0.6002, allocations: 443.1 kB / 0.9218 GB, free: 13.45 MB / 0.6856 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.004812/0.605, allocations: 2.14 MB / 0.9239 GB, free: 11.28 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002245/0.6072, allocations: 0.8362 MB / 0.9247 GB, free: 10.44 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6073, allocations: 5.062 kB / 0.9247 GB, free: 10.43 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.6087, allocations: 451.1 kB / 0.9251 GB, free: 9.996 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/0.6117, allocations: 0.7389 MB / 0.9259 GB, free: 9.266 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.63, allocations: 10.5 MB / 0.9361 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008777/0.6309, allocations: 1.168 MB / 0.9373 GB, free: 13.19 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0008352/0.6317, allocations: 267.6 kB / 0.9375 GB, free: 12.93 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008119/0.6325, allocations: 0.55 MB / 0.9381 GB, free: 12.38 MB / 0.7012 GB Notification: Performance of SimCode: time 2.51e-07/0.6325, allocations: 0 / 0.9381 GB, free: 12.38 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0805/0.713, allocations: 43.77 MB / 0.9808 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.32, allocations: 6.469 kB / 0.9808 GB, free: 1.234 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)