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: translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001227/0.001228, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002126/0.002127, allocations: 295.4 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 95.86 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4221, allocations: 86.99 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06926/0.4914, allocations: 70.43 MB / 0.8358 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02428/0.5157, allocations: 18.94 MB / 0.8543 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002755/0.5185, allocations: 67.56 kB / 0.8544 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002319/0.5209, allocations: 0.8189 MB / 0.8552 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.008211/0.5291, allocations: 2.857 MB / 0.858 GB, free: 6.492 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003981/0.5331, allocations: 1.647 MB / 0.8596 GB, free: 4.852 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005392/0.5385, allocations: 4.046 MB / 0.8635 GB, free: 0.793 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002115/0.5407, allocations: 1.453 MB / 0.8649 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004481/0.5451, allocations: 1.808 MB / 0.8667 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002702/0.5479, allocations: 1.175 MB / 0.8679 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.5482, allocations: 176 kB / 0.868 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00315/0.5513, allocations: 1.412 MB / 0.8694 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000349/0.5517, allocations: 390.7 kB / 0.8698 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.5527, allocations: 0.9254 MB / 0.8707 GB, free: 9.418 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004584/0.5573, allocations: 3.111 MB / 0.8737 GB, free: 6.301 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.5574, allocations: 4 kB / 0.8737 GB, free: 6.297 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5574, allocations: 0 / 0.8737 GB, free: 6.297 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.312e-05/0.5574, allocations: 0 / 0.8737 GB, free: 6.297 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.003339/0.5607, allocations: 2.027 MB / 0.8757 GB, free: 4.207 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.5608, allocations: 11.97 kB / 0.8757 GB, free: 4.195 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00226/0.563, allocations: 450.4 kB / 0.8761 GB, free: 3.754 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002682/0.5657, allocations: 1.547 MB / 0.8777 GB, free: 2.148 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.5658, allocations: 78.03 kB / 0.8777 GB, free: 2.07 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.566, allocations: 104 kB / 0.8778 GB, free: 1.969 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.5684, allocations: 1.323 MB / 0.8791 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.5685, allocations: 7.938 kB / 0.8791 GB, free: 0.5312 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.5686, allocations: 51.98 kB / 0.8792 GB, free: 492 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.5686, allocations: 24 kB / 0.8792 GB, free: 468 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002547/0.5712, allocations: 1.101 MB / 0.8803 GB, free: 15.35 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.008143/0.5793, allocations: 7.501 MB / 0.8876 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003152/0.5825, allocations: 0.7995 MB / 0.8884 GB, free: 6.531 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005976/0.5831, allocations: 293.9 kB / 0.8887 GB, free: 6.242 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001164/0.5843, allocations: 1.718 MB / 0.8903 GB, free: 4.133 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.5843, allocations: 35 kB / 0.8904 GB, free: 4.09 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.675e-06/0.5843, allocations: 4 kB / 0.8904 GB, free: 4.086 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.004969/0.5893, allocations: 1.346 MB / 0.8917 GB, free: 2.715 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.5894, allocations: 59.84 kB / 0.8917 GB, free: 2.645 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002361/0.5917, allocations: 1.545 MB / 0.8933 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.966e-05/0.5918, allocations: 37.7 kB / 0.8933 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005441/0.5924, allocations: 0.6691 MB / 0.8939 GB, free: 380 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.5926, allocations: 173.5 kB / 0.8941 GB, free: 204 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002645/0.5928, allocations: 170.4 kB / 0.8943 GB, free: 28 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.593, allocations: 334 kB / 0.8946 GB, free: 15.69 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009852/0.594, allocations: 365.8 kB / 0.8949 GB, free: 15.34 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.5952, allocations: 0.6585 MB / 0.8956 GB, free: 14.55 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.5969, allocations: 0.8867 MB / 0.8965 GB, free: 13.56 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.597, allocations: 3.938 kB / 0.8965 GB, free: 13.56 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003053/0.6, allocations: 1.193 MB / 0.8976 GB, free: 12.36 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.6001, allocations: 8 kB / 0.8976 GB, free: 12.35 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.6001, allocations: 8 kB / 0.8976 GB, free: 12.34 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008875/0.601, allocations: 224.7 kB / 0.8979 GB, free: 12.12 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007537/0.6017, allocations: 187.7 kB / 0.898 GB, free: 11.93 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008597/0.6026, allocations: 0.7239 MB / 0.8987 GB, free: 11.19 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.6042, allocations: 218.6 kB / 0.8989 GB, free: 10.97 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.705e-05/0.6043, allocations: 39.98 kB / 0.899 GB, free: 10.93 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.0005878/0.6049, allocations: 353.6 kB / 0.8993 GB, free: 10.58 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.6051, allocations: 150.2 kB / 0.8995 GB, free: 10.43 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.6075, allocations: 1.144 MB / 0.9006 GB, free: 9.266 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.6075, allocations: 11.98 kB / 0.9006 GB, free: 9.254 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.6075, allocations: 0 / 0.9006 GB, free: 9.254 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.6076, allocations: 3.984 kB / 0.9006 GB, free: 9.25 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005163/0.6127, allocations: 2.51 MB / 0.903 GB, free: 6.656 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.6128, allocations: 0 / 0.903 GB, free: 6.656 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003705/0.6131, allocations: 91.81 kB / 0.9031 GB, free: 6.566 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007696/0.6139, allocations: 212.7 kB / 0.9033 GB, free: 6.355 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.614, allocations: 23.98 kB / 0.9034 GB, free: 6.332 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.6153, allocations: 0.7746 MB / 0.9041 GB, free: 5.531 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6153, allocations: 0 / 0.9041 GB, free: 5.531 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003582/0.6189, allocations: 1.199 MB / 0.9053 GB, free: 4.293 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.6196, allocations: 350.9 kB / 0.9056 GB, free: 3.93 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/0.6199, allocations: 12 kB / 0.9056 GB, free: 3.918 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.621, allocations: 79.91 kB / 0.9057 GB, free: 3.84 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.795e-05/0.6211, allocations: 36.52 kB / 0.9057 GB, free: 3.805 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.491e-05/0.6212, allocations: 31.97 kB / 0.9058 GB, free: 3.773 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002012/0.6232, allocations: 1.082 MB / 0.9068 GB, free: 2.695 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6232, allocations: 0 / 0.9068 GB, free: 2.695 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00144/0.6246, allocations: 443.4 kB / 0.9073 GB, free: 2.262 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.001083/0.6257, allocations: 487.1 kB / 0.9077 GB, free: 1.793 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002325/0.6281, allocations: 0.8486 MB / 0.9085 GB, free: 0.9453 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6281, allocations: 0 / 0.9085 GB, free: 0.9453 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001349/0.6294, allocations: 435.6 kB / 0.909 GB, free: 0.5195 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003572/0.633, allocations: 0.7448 MB / 0.9097 GB, free: 15.79 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/0.6374, allocations: 2.268 MB / 0.9119 GB, free: 13.46 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007941/0.6382, allocations: 1.165 MB / 0.913 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004033/0.6386, allocations: 119.3 kB / 0.9132 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of SimCode: time 7.82e-07/0.6386, allocations: 3.938 kB / 0.9132 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of Templates: time 0.04493/0.6835, allocations: 34.24 MB / 0.9466 GB, free: 10.16 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1)