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.00466/0.00466, allocations: 99.84 kB / 15.73 MB, free: 6.043 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.00106/0.00106, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 282.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9351/0.9351, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 87.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1639, allocations: 86.97 MB / 0.7664 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.4066/0.5706, allocations: 70.44 MB / 0.8352 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.024/0.5946, allocations: 18.92 MB / 0.8536 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002575/0.5972, allocations: 67.12 kB / 0.8537 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.5993, allocations: 0.8191 MB / 0.8545 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006985/0.6063, allocations: 2.859 MB / 0.8573 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003779/0.6101, allocations: 1.656 MB / 0.8589 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005285/0.6154, allocations: 4.038 MB / 0.8629 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001972/0.6174, allocations: 1.463 MB / 0.8643 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003999/0.6214, allocations: 1.801 MB / 0.866 GB, free: 9.055 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002166/0.6236, allocations: 1.18 MB / 0.8672 GB, free: 8.32 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002849/0.6239, allocations: 179.1 kB / 0.8674 GB, free: 8.316 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003309/0.6272, allocations: 1.415 MB / 0.8687 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003829/0.6276, allocations: 383.3 kB / 0.8691 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.6287, allocations: 0.921 MB / 0.87 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004599/0.6333, allocations: 3.114 MB / 0.8731 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.6333, allocations: 6.406 kB / 0.8731 GB, free: 4.449 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.647e-06/0.6333, allocations: 0 / 0.8731 GB, free: 4.449 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.03e-05/0.6334, allocations: 0 / 0.8731 GB, free: 4.449 MB / 0.6231 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.00426/0.6376, allocations: 2.037 MB / 0.875 GB, free: 2.887 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.6377, allocations: 10.34 kB / 0.8751 GB, free: 2.887 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/0.64, allocations: 443.2 kB / 0.8755 GB, free: 2.684 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/0.6428, allocations: 1.551 MB / 0.877 GB, free: 1.426 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.6429, allocations: 82.03 kB / 0.8771 GB, free: 1.387 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.6431, allocations: 102.1 kB / 0.8772 GB, free: 1.355 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.6457, allocations: 1.322 MB / 0.8785 GB, free: 84 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.6458, allocations: 4 kB / 0.8785 GB, free: 80 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.6459, allocations: 44 kB / 0.8785 GB, free: 36 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.6459, allocations: 24 kB / 0.8785 GB, free: 12 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/0.6486, allocations: 1.105 MB / 0.8796 GB, free: 14.9 MB / 0.6387 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.008522/0.6571, allocations: 7.503 MB / 0.8869 GB, free: 6.887 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.6603, allocations: 0.7991 MB / 0.8877 GB, free: 6.082 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006205/0.6609, allocations: 286 kB / 0.888 GB, free: 5.797 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001297/0.6622, allocations: 1.722 MB / 0.8897 GB, free: 3.688 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.6623, allocations: 42.94 kB / 0.8897 GB, free: 3.637 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=48): time 2.214e-06/0.6623, allocations: 4 kB / 0.8897 GB, free: 3.633 MB / 0.6387 GB Notification: Performance of matching and sorting (n=48): time 0.004707/0.667, allocations: 1.33 MB / 0.891 GB, free: 2.273 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.667, allocations: 59.78 kB / 0.8911 GB, free: 2.203 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.6692, allocations: 1.549 MB / 0.8926 GB, free: 0.6445 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.6693, allocations: 37.7 kB / 0.8926 GB, free: 0.6016 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005662/0.6699, allocations: 0.673 MB / 0.8933 GB, free: 15.92 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.67, allocations: 173.6 kB / 0.8934 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.6703, allocations: 166.5 kB / 0.8936 GB, free: 15.58 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0002134/0.6705, allocations: 338 kB / 0.8939 GB, free: 15.24 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.6716, allocations: 361.8 kB / 0.8943 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.6728, allocations: 0.6585 MB / 0.8949 GB, free: 14.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.6747, allocations: 0.8868 MB / 0.8958 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.6747, allocations: 0 / 0.8958 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00298/0.6777, allocations: 1.193 MB / 0.8969 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.6777, allocations: 15.92 kB / 0.897 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.6778, allocations: 8 kB / 0.897 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008453/0.6786, allocations: 228.6 kB / 0.8972 GB, free: 11.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007618/0.6794, allocations: 191.7 kB / 0.8974 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009133/0.6803, allocations: 0.7201 MB / 0.8981 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.6819, allocations: 211.2 kB / 0.8983 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.793e-05/0.682, allocations: 43.98 kB / 0.8983 GB, free: 10.48 MB / 0.6544 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.0005573/0.6826, allocations: 353.6 kB / 0.8987 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.6828, allocations: 150.2 kB / 0.8988 GB, free: 9.973 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002375/0.6852, allocations: 1.148 MB / 0.8999 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.6852, allocations: 12 kB / 0.8999 GB, free: 8.797 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.6853, allocations: 0 / 0.8999 GB, free: 8.797 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.6853, allocations: 3.984 kB / 0.8999 GB, free: 8.793 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00523/0.6905, allocations: 2.51 MB / 0.9024 GB, free: 6.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.6905, allocations: 0 / 0.9024 GB, free: 6.199 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.6909, allocations: 83.89 kB / 0.9025 GB, free: 6.117 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000726/0.6916, allocations: 208.8 kB / 0.9027 GB, free: 5.91 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.6917, allocations: 19.98 kB / 0.9027 GB, free: 5.891 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/0.6931, allocations: 0.7709 MB / 0.9034 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.6931, allocations: 7.969 kB / 0.9034 GB, free: 5.086 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.6965, allocations: 1.203 MB / 0.9046 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.697, allocations: 350.9 kB / 0.905 GB, free: 3.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.6972, allocations: 15.92 kB / 0.905 GB, free: 3.465 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000903/0.6982, allocations: 79.92 kB / 0.905 GB, free: 3.387 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.6983, allocations: 40.5 kB / 0.9051 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.6983, allocations: 23.98 kB / 0.9051 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001712/0.7, allocations: 1.086 MB / 0.9062 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7, allocations: 0 / 0.9062 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001298/0.7013, allocations: 443.4 kB / 0.9066 GB, free: 1.809 MB / 0.6544 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.0008894/0.7022, allocations: 481.6 kB / 0.907 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002124/0.7044, allocations: 0.8528 MB / 0.9079 GB, free: 500 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.7044, allocations: 0 / 0.9079 GB, free: 500 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.7057, allocations: 435.8 kB / 0.9083 GB, free: 68 kB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/0.7087, allocations: 0.7506 MB / 0.909 GB, free: 15.33 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.7124, allocations: 2.242 MB / 0.9112 GB, free: 13.04 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007563/0.7131, allocations: 1.168 MB / 0.9124 GB, free: 11.84 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0008438/0.714, allocations: 272 kB / 0.9126 GB, free: 11.57 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002511/0.7143, allocations: 115.4 kB / 0.9127 GB, free: 11.46 MB / 0.67 GB Notification: Performance of SimCode: time 4.3e-07/0.7143, allocations: 0 / 0.9127 GB, free: 11.46 MB / 0.67 GB Notification: Performance of Templates: time 0.04851/0.7628, allocations: 31.77 MB / 0.9438 GB, free: 12.11 MB / 0.7012 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)