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.001578/0.001578, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001994/0.001994, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002159/0.002159, allocations: 290.9 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9246/0.9246, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 97.88 kB / 0.5952 GB, free: 27.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1692, allocations: 86.99 MB / 0.6802 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06534/0.2346, allocations: 70.43 MB / 0.749 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02253/0.2572, allocations: 18.92 MB / 0.7674 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00251/0.2597, allocations: 67.62 kB / 0.7675 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002199/0.262, allocations: 0.8189 MB / 0.7683 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.007232/0.2692, allocations: 2.85 MB / 0.7711 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00384/0.2731, allocations: 1.656 MB / 0.7727 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3832/0.6563, allocations: 4.024 MB / 0.7766 GB, free: 25.87 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00275/0.6591, allocations: 1.446 MB / 0.778 GB, free: 25.78 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005646/0.6647, allocations: 1.766 MB / 0.7798 GB, free: 25.78 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002288/0.667, allocations: 1.178 MB / 0.7809 GB, free: 25.7 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003345/0.6674, allocations: 178.6 kB / 0.7811 GB, free: 25.7 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003765/0.6711, allocations: 1.407 MB / 0.7825 GB, free: 25.7 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003947/0.6716, allocations: 384.8 kB / 0.7828 GB, free: 25.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.6727, allocations: 0.9218 MB / 0.7837 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005892/0.6786, allocations: 3.084 MB / 0.7867 GB, free: 25.14 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.423e-06/0.6786, allocations: 0 / 0.7867 GB, free: 25.14 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.956e-06/0.6786, allocations: 1.594 kB / 0.7867 GB, free: 25.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.732e-05/0.6787, allocations: 0 / 0.7867 GB, free: 25.14 MB / 0.5606 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.004483/0.6831, allocations: 2.039 MB / 0.7887 GB, free: 24.12 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.6832, allocations: 11.09 kB / 0.7887 GB, free: 24.12 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002291/0.6855, allocations: 445.8 kB / 0.7892 GB, free: 24.02 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.688, allocations: 1.486 MB / 0.7906 GB, free: 23.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/0.6884, allocations: 135.9 kB / 0.7907 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.6885, allocations: 101.9 kB / 0.7908 GB, free: 23.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.691, allocations: 1.321 MB / 0.7921 GB, free: 23.3 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.691, allocations: 6.422 kB / 0.7921 GB, free: 23.3 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.6911, allocations: 45.41 kB / 0.7922 GB, free: 23.3 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.6911, allocations: 25.34 kB / 0.7922 GB, free: 23.3 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002517/0.6937, allocations: 1.107 MB / 0.7933 GB, free: 23.29 MB / 0.5606 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.007404/0.7011, allocations: 7.563 MB / 0.8007 GB, free: 18.86 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/0.704, allocations: 0.8043 MB / 0.8015 GB, free: 18.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005467/0.7046, allocations: 279 kB / 0.8017 GB, free: 18.81 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008406/0.7055, allocations: 1.727 MB / 0.8034 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.7055, allocations: 41.84 kB / 0.8035 GB, free: 16.79 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.555e-06/0.7055, allocations: 0 / 0.8035 GB, free: 16.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.004733/0.7102, allocations: 1.339 MB / 0.8048 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.7103, allocations: 56.38 kB / 0.8048 GB, free: 16.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/0.7132, allocations: 1.547 MB / 0.8063 GB, free: 16.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.897e-05/0.7133, allocations: 40.95 kB / 0.8064 GB, free: 16.28 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005517/0.7139, allocations: 0.678 MB / 0.807 GB, free: 16.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.714, allocations: 168.3 kB / 0.8072 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003254/0.7144, allocations: 174 kB / 0.8074 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.162e-05/0.7144, allocations: 339 kB / 0.8077 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009806/0.7154, allocations: 369.7 kB / 0.808 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.7166, allocations: 0.66 MB / 0.8087 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.7184, allocations: 0.8912 MB / 0.8095 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.7184, allocations: 2.375 kB / 0.8095 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00319/0.7216, allocations: 1.207 MB / 0.8107 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.7217, allocations: 8.406 kB / 0.8107 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.7217, allocations: 15.69 kB / 0.8107 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000949/0.7227, allocations: 213.3 kB / 0.811 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.7235, allocations: 198 kB / 0.8111 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007733/0.7242, allocations: 0.7165 MB / 0.8118 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.7259, allocations: 226.7 kB / 0.8121 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.27e-05/0.726, allocations: 40.62 kB / 0.8121 GB, free: 14.18 MB / 0.5606 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.0007141/0.7268, allocations: 354.8 kB / 0.8124 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.727, allocations: 150 kB / 0.8126 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.7295, allocations: 1.142 MB / 0.8137 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.959e-05/0.7295, allocations: 9.531 kB / 0.8137 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.7295, allocations: 1.156 kB / 0.8137 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.7295, allocations: 3.516 kB / 0.8137 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004894/0.7344, allocations: 2.519 MB / 0.8162 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.7345, allocations: 1.75 kB / 0.8162 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.7348, allocations: 86 kB / 0.8162 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007142/0.7355, allocations: 214.7 kB / 0.8165 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.7356, allocations: 22.53 kB / 0.8165 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.7367, allocations: 0.7737 MB / 0.8172 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.7367, allocations: 2.75 kB / 0.8172 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.7399, allocations: 1.205 MB / 0.8184 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005599/0.7404, allocations: 350.6 kB / 0.8187 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.7406, allocations: 12.56 kB / 0.8188 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008493/0.7415, allocations: 81.5 kB / 0.8188 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.7416, allocations: 35.45 kB / 0.8189 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-05/0.7416, allocations: 26.84 kB / 0.8189 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001702/0.7433, allocations: 1.096 MB / 0.82 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7434, allocations: 0 / 0.82 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001395/0.7448, allocations: 448.5 kB / 0.8204 GB, free: 11.98 MB / 0.5606 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.0008401/0.7456, allocations: 482.2 kB / 0.8209 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002254/0.7479, allocations: 0.874 MB / 0.8217 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.7479, allocations: 1 kB / 0.8217 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.7491, allocations: 451.1 kB / 0.8221 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/0.7521, allocations: 0.7411 MB / 0.8229 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.7555, allocations: 2.291 MB / 0.8251 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004943/0.756, allocations: 1.172 MB / 0.8262 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009886/0.757, allocations: 273.1 kB / 0.8265 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.7572, allocations: 117.9 kB / 0.8266 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.7572, allocations: 0 / 0.8266 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of Templates: time 0.04775/0.805, allocations: 31.56 MB / 0.8574 GB, free: 2.039 MB / 0.5762 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)