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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.776/0.776, allocations: 143.4 MB / 159.2 MB, free: 4.902 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 187.5 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 447.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 118.9 kB / 0.517 GB, free: 3.707 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001812/0.001812, allocations: 280.1 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 79.88 kB / 0.6885 GB, free: 3.848 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3404, allocations: 81.3 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05479/0.3952, allocations: 70.02 MB / 0.8363 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.02238/0.4176, allocations: 19.01 MB / 0.8549 GB, free: 2.371 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.4205, allocations: 67.56 kB / 0.8549 GB, free: 2.305 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.4228, allocations: 0.6488 MB / 0.8556 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.008143/0.431, allocations: 2.607 MB / 0.8581 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.4352, allocations: 1.502 MB / 0.8596 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.005931/0.4411, allocations: 5.044 MB / 0.8645 GB, free: 8.477 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.4432, allocations: 1.191 MB / 0.8657 GB, free: 7.254 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003066/0.4462, allocations: 1.52 MB / 0.8672 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.4479, allocations: 1.155 MB / 0.8683 GB, free: 4.566 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.4481, allocations: 79.94 kB / 0.8684 GB, free: 4.488 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00262/0.4507, allocations: 1.243 MB / 0.8696 GB, free: 3.242 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002937/0.4511, allocations: 294.6 kB / 0.8699 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0008776/0.4519, allocations: 0.8122 MB / 0.8706 GB, free: 2.137 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.003506/0.4555, allocations: 3.03 MB / 0.8736 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.4555, allocations: 0 / 0.8736 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4555, allocations: 0 / 0.8736 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.51e-05/0.4555, allocations: 0 / 0.8736 GB, free: 15.1 MB / 0.5417 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.003396/0.4589, allocations: 2.042 MB / 0.8756 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.459, allocations: 8.031 kB / 0.8756 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002221/0.4612, allocations: 446.4 kB / 0.876 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002617/0.4638, allocations: 1.516 MB / 0.8775 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00041/0.4643, allocations: 138 kB / 0.8776 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.4644, allocations: 107.9 kB / 0.8777 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.4668, allocations: 1.293 MB / 0.879 GB, free: 9.344 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.4669, allocations: 7.938 kB / 0.879 GB, free: 9.336 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-05/0.467, allocations: 40 kB / 0.8791 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.467, allocations: 28 kB / 0.8791 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/0.4697, allocations: 1.112 MB / 0.8802 GB, free: 8.156 MB / 0.5417 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.008318/0.478, allocations: 7.133 MB / 0.8871 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003166/0.4812, allocations: 0.7994 MB / 0.8879 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006087/0.4818, allocations: 286 kB / 0.8882 GB, free: 15.44 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001227/0.483, allocations: 1.726 MB / 0.8899 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.4831, allocations: 38.94 kB / 0.8899 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=48): time 3.216e-06/0.4831, allocations: 0 / 0.8899 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of matching and sorting (n=48): time 0.004796/0.4879, allocations: 1.338 MB / 0.8912 GB, free: 11.91 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.488, allocations: 55.84 kB / 0.8913 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002284/0.4902, allocations: 1.521 MB / 0.8928 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.65e-05/0.4903, allocations: 41.7 kB / 0.8928 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/0.4908, allocations: 0.6614 MB / 0.8934 GB, free: 9.598 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.491, allocations: 169.6 kB / 0.8936 GB, free: 9.43 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.4913, allocations: 166.4 kB / 0.8938 GB, free: 9.258 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4914, allocations: 334 kB / 0.8941 GB, free: 8.926 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009794/0.4924, allocations: 365.8 kB / 0.8944 GB, free: 8.57 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.4936, allocations: 0.6354 MB / 0.8951 GB, free: 7.82 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.4953, allocations: 0.856 MB / 0.8959 GB, free: 6.875 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4953, allocations: 4 kB / 0.8959 GB, free: 6.871 MB / 0.5573 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004235/0.4995, allocations: 1.333 MB / 0.8972 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.4996, allocations: 8.812 kB / 0.8972 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4996, allocations: 8 kB / 0.8972 GB, free: 5.512 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000842/0.5004, allocations: 220.6 kB / 0.8974 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007116/0.5012, allocations: 187.7 kB / 0.8976 GB, free: 5.109 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007983/0.502, allocations: 0.7123 MB / 0.8983 GB, free: 4.371 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.5035, allocations: 238.8 kB / 0.8985 GB, free: 4.137 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.881e-05/0.5036, allocations: 39.98 kB / 0.8986 GB, free: 4.098 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (78): * Single equations (assignments): 77 * 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.0005309/0.5041, allocations: 353.6 kB / 0.8989 GB, free: 3.742 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.5044, allocations: 154.1 kB / 0.899 GB, free: 3.59 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.5066, allocations: 1.142 MB / 0.9002 GB, free: 2.434 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.5067, allocations: 8 kB / 0.9002 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.5067, allocations: 3.938 kB / 0.9002 GB, free: 2.422 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.5067, allocations: 3.984 kB / 0.9002 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2779/0.7846, allocations: 2.504 MB / 0.9026 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/0.7846, allocations: 1.562 kB / 0.9026 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004497/0.7851, allocations: 85.45 kB / 0.9027 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008455/0.7859, allocations: 218.1 kB / 0.9029 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/0.786, allocations: 16.41 kB / 0.9029 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.7873, allocations: 0.7742 MB / 0.9037 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7873, allocations: 2.406 kB / 0.9037 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004958/0.7923, allocations: 2.417 MB / 0.906 GB, free: 127.3 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005533/0.7928, allocations: 346.9 kB / 0.9064 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.793, allocations: 21.27 kB / 0.9064 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009362/0.7939, allocations: 83.41 kB / 0.9065 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.7941, allocations: 40.22 kB / 0.9065 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-05/0.7941, allocations: 31.92 kB / 0.9065 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001884/0.796, allocations: 1.076 MB / 0.9076 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2e-07/0.796, allocations: 0 / 0.9076 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001425/0.7975, allocations: 450.6 kB / 0.908 GB, free: 126.6 MB / 0.5573 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.0009211/0.7984, allocations: 478.3 kB / 0.9085 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00223/0.8006, allocations: 0.8293 MB / 0.9093 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8007, allocations: 1.125 kB / 0.9093 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.802, allocations: 438.2 kB / 0.9097 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/0.8053, allocations: 0.7062 MB / 0.9104 GB, free: 126 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.8091, allocations: 3.133 MB / 0.9135 GB, free: 124 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006946/0.8098, allocations: 1.189 MB / 0.9146 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001095/0.8109, allocations: 261.7 kB / 0.9149 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.8113, allocations: 115.6 kB / 0.915 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of SimCode: time 7.62e-07/0.8113, allocations: 4.594 kB / 0.915 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.04164/0.8529, allocations: 31.02 MB / 0.9453 GB, free: 98.73 MB / 0.5573 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)