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.004668/0.004668, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001076/0.001076, allocations: 196.1 kB / 16.68 MB, free: 5.957 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002301/0.002301, allocations: 299 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.96/0.96, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 95.86 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4838/0.4858, allocations: 86.97 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06378/0.5496, allocations: 70.43 MB / 0.8347 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02391/0.5735, allocations: 18.93 MB / 0.8532 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.5762, allocations: 71.56 kB / 0.8532 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.5783, allocations: 0.8228 MB / 0.854 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007032/0.5853, allocations: 2.854 MB / 0.8568 GB, free: 6.43 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003759/0.5891, allocations: 1.655 MB / 0.8584 GB, free: 4.785 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005474/0.5946, allocations: 4.042 MB / 0.8624 GB, free: 0.7305 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002143/0.5968, allocations: 1.457 MB / 0.8638 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00421/0.601, allocations: 1.801 MB / 0.8656 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002146/0.6032, allocations: 1.179 MB / 0.8667 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004298/0.6036, allocations: 176 kB / 0.8669 GB, free: 12.08 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003851/0.6075, allocations: 1.416 MB / 0.8683 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005763/0.608, allocations: 390.6 kB / 0.8686 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001765/0.6098, allocations: 0.9138 MB / 0.8695 GB, free: 9.359 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004688/0.6145, allocations: 3.116 MB / 0.8726 GB, free: 6.234 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.6145, allocations: 0 / 0.8726 GB, free: 6.234 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6145, allocations: 0 / 0.8726 GB, free: 6.234 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.101e-05/0.6146, allocations: 4 kB / 0.8726 GB, free: 6.23 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.003305/0.6179, allocations: 2.033 MB / 0.8746 GB, free: 4.137 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.6179, allocations: 16.02 kB / 0.8746 GB, free: 4.121 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.6181, allocations: 156.6 kB / 0.8747 GB, free: 3.961 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002125/0.6202, allocations: 446.1 kB / 0.8751 GB, free: 3.523 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.6227, allocations: 1.547 MB / 0.8767 GB, free: 1.918 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.277e-05/0.6228, allocations: 86.02 kB / 0.8767 GB, free: 1.832 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.623, allocations: 104 kB / 0.8768 GB, free: 1.73 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.6253, allocations: 1.323 MB / 0.8781 GB, free: 308 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.6253, allocations: 4 kB / 0.8781 GB, free: 304 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.714e-05/0.6254, allocations: 43.94 kB / 0.8782 GB, free: 260 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.6254, allocations: 28 kB / 0.8782 GB, free: 232 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/0.6279, allocations: 1.101 MB / 0.8793 GB, free: 15.12 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.008285/0.6362, allocations: 7.505 MB / 0.8866 GB, free: 7.102 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003/0.6392, allocations: 0.7995 MB / 0.8874 GB, free: 6.297 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005534/0.6397, allocations: 278 kB / 0.8877 GB, free: 6.023 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00118/0.6409, allocations: 1.734 MB / 0.8893 GB, free: 3.898 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.641, allocations: 38.94 kB / 0.8894 GB, free: 3.852 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.284e-06/0.641, allocations: 0 / 0.8894 GB, free: 3.852 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.00453/0.6455, allocations: 1.334 MB / 0.8907 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.6456, allocations: 55.84 kB / 0.8907 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.6478, allocations: 1.553 MB / 0.8923 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.76e-05/0.6479, allocations: 37.7 kB / 0.8923 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005458/0.6485, allocations: 0.6768 MB / 0.893 GB, free: 140 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.6486, allocations: 169.6 kB / 0.8931 GB, free: 15.97 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.6489, allocations: 170.5 kB / 0.8933 GB, free: 15.8 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.6491, allocations: 334 kB / 0.8936 GB, free: 15.46 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008794/0.6499, allocations: 361.8 kB / 0.8939 GB, free: 15.11 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.6511, allocations: 0.6662 MB / 0.8946 GB, free: 14.32 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.6527, allocations: 0.8828 MB / 0.8955 GB, free: 13.34 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.6527, allocations: 4 kB / 0.8955 GB, free: 13.33 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002848/0.6556, allocations: 1.189 MB / 0.8966 GB, free: 12.13 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.6556, allocations: 15.11 kB / 0.8966 GB, free: 12.12 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.6556, allocations: 8 kB / 0.8966 GB, free: 12.11 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009004/0.6565, allocations: 220.6 kB / 0.8969 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.6573, allocations: 187.8 kB / 0.897 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008499/0.6582, allocations: 0.7279 MB / 0.8977 GB, free: 10.96 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.6597, allocations: 210.7 kB / 0.8979 GB, free: 10.75 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.6598, allocations: 43.98 kB / 0.898 GB, free: 10.71 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.0006045/0.6604, allocations: 357.6 kB / 0.8983 GB, free: 10.35 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.6608, allocations: 146.2 kB / 0.8985 GB, free: 10.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.6632, allocations: 1.14 MB / 0.8996 GB, free: 9.043 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.161e-05/0.6632, allocations: 8 kB / 0.8996 GB, free: 9.035 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.6632, allocations: 0 / 0.8996 GB, free: 9.035 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.6632, allocations: 11.98 kB / 0.8996 GB, free: 9.023 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005348/0.6686, allocations: 2.518 MB / 0.9021 GB, free: 6.422 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.6686, allocations: 0 / 0.9021 GB, free: 6.422 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.669, allocations: 84.02 kB / 0.9021 GB, free: 6.34 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007307/0.6697, allocations: 216.6 kB / 0.9023 GB, free: 6.125 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.6698, allocations: 19.98 kB / 0.9024 GB, free: 6.105 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.671, allocations: 0.7708 MB / 0.9031 GB, free: 5.309 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6711, allocations: 8.016 kB / 0.9031 GB, free: 5.301 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003269/0.6743, allocations: 1.195 MB / 0.9043 GB, free: 4.066 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000743/0.6751, allocations: 350.9 kB / 0.9046 GB, free: 3.703 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.6754, allocations: 15.98 kB / 0.9046 GB, free: 3.688 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.6765, allocations: 71.92 kB / 0.9047 GB, free: 3.617 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.6766, allocations: 48.44 kB / 0.9048 GB, free: 3.57 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/0.6767, allocations: 23.98 kB / 0.9048 GB, free: 3.547 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002114/0.6788, allocations: 1.086 MB / 0.9058 GB, free: 2.465 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6788, allocations: 0 / 0.9058 GB, free: 2.465 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001338/0.6801, allocations: 443.4 kB / 0.9063 GB, free: 2.031 MB / 0.67 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.004667/0.6848, allocations: 2.126 MB / 0.9083 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002114/0.6869, allocations: 0.8486 MB / 0.9092 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.687, allocations: 320 / 0.9092 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.6882, allocations: 447.2 kB / 0.9096 GB, free: 14.58 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003315/0.6915, allocations: 0.7353 MB / 0.9103 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01838/0.7099, allocations: 10.44 MB / 0.9205 GB, free: 3.051 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008417/0.7108, allocations: 1.176 MB / 0.9217 GB, free: 1.844 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001094/0.7119, allocations: 263.9 kB / 0.9219 GB, free: 1.586 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007726/0.7127, allocations: 0.5499 MB / 0.9224 GB, free: 1.035 MB / 0.6856 GB Notification: Performance of SimCode: time 1.373e-06/0.7127, allocations: 0 / 0.9224 GB, free: 1.035 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08235/0.7951, allocations: 44.52 MB / 0.9659 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.24, allocations: 7.312 kB / 0.9659 GB, free: 5.141 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.fmu > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)