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.001519/0.001519, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001607/0.001607, allocations: 187 kB / 17.34 MB, free: 5.766 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 294.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.09/1.09, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 103.8 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4245, allocations: 86.97 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.07305/0.4976, allocations: 70.43 MB / 0.8358 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02581/0.5235, allocations: 18.94 MB / 0.8543 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00268/0.5262, allocations: 71.56 kB / 0.8544 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.5288, allocations: 0.8228 MB / 0.8552 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.008755/0.5375, allocations: 2.851 MB / 0.858 GB, free: 6.504 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004538/0.5421, allocations: 1.653 MB / 0.8596 GB, free: 4.859 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00625/0.5484, allocations: 4.039 MB / 0.8635 GB, free: 0.8086 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002619/0.551, allocations: 1.457 MB / 0.8649 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004373/0.5554, allocations: 1.805 MB / 0.8667 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00226/0.5577, allocations: 1.175 MB / 0.8679 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004654/0.5582, allocations: 176 kB / 0.868 GB, free: 12.16 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.5614, allocations: 1.416 MB / 0.8694 GB, free: 10.74 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005824/0.562, allocations: 390.6 kB / 0.8698 GB, free: 10.36 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.5635, allocations: 0.9216 MB / 0.8707 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004837/0.5684, allocations: 3.115 MB / 0.8737 GB, free: 6.309 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.5684, allocations: 0 / 0.8737 GB, free: 6.309 MB / 0.6387 GB Notification: Performance of FrontEnd: time 4.558e-06/0.5684, allocations: 4 kB / 0.8737 GB, free: 6.305 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.002e-05/0.5685, allocations: 0 / 0.8737 GB, free: 6.305 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.003855/0.5723, allocations: 2.03 MB / 0.8757 GB, free: 4.211 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.5724, allocations: 8.031 kB / 0.8757 GB, free: 4.203 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002364/0.5748, allocations: 446.4 kB / 0.8761 GB, free: 3.766 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.5775, allocations: 1.555 MB / 0.8777 GB, free: 2.152 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.011e-05/0.5776, allocations: 82.03 kB / 0.8777 GB, free: 2.07 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.5778, allocations: 111.9 kB / 0.8778 GB, free: 1.961 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/0.5803, allocations: 1.313 MB / 0.8791 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.5803, allocations: 7.938 kB / 0.8791 GB, free: 0.5312 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.5804, allocations: 44 kB / 0.8792 GB, free: 500 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/0.5804, allocations: 24 kB / 0.8792 GB, free: 476 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/0.583, allocations: 1.093 MB / 0.8803 GB, free: 15.36 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.008373/0.5914, allocations: 7.512 MB / 0.8876 GB, free: 7.34 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003105/0.5945, allocations: 0.794 MB / 0.8884 GB, free: 6.539 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.5951, allocations: 290 kB / 0.8887 GB, free: 6.254 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001258/0.5964, allocations: 1.718 MB / 0.8903 GB, free: 4.145 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.5964, allocations: 35 kB / 0.8904 GB, free: 4.102 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 4.087e-06/0.5964, allocations: 3.984 kB / 0.8904 GB, free: 4.098 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.004677/0.6011, allocations: 1.342 MB / 0.8917 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.6012, allocations: 59.84 kB / 0.8917 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.6036, allocations: 1.549 MB / 0.8933 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.884e-05/0.6037, allocations: 37.7 kB / 0.8933 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005759/0.6043, allocations: 0.6691 MB / 0.8939 GB, free: 392 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.6044, allocations: 177.5 kB / 0.8941 GB, free: 212 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/0.6047, allocations: 166.5 kB / 0.8943 GB, free: 40 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.6048, allocations: 334 kB / 0.8946 GB, free: 15.71 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009276/0.6058, allocations: 365.8 kB / 0.8949 GB, free: 15.35 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.607, allocations: 0.6624 MB / 0.8956 GB, free: 14.57 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.6087, allocations: 0.8867 MB / 0.8964 GB, free: 13.57 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.6087, allocations: 3.938 kB / 0.8965 GB, free: 13.57 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00281/0.6115, allocations: 1.189 MB / 0.8976 GB, free: 12.37 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.6115, allocations: 8 kB / 0.8976 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.6116, allocations: 8 kB / 0.8976 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009201/0.6125, allocations: 220.6 kB / 0.8978 GB, free: 12.14 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007797/0.6133, allocations: 199.6 kB / 0.898 GB, free: 11.94 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008459/0.6141, allocations: 0.7201 MB / 0.8987 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.6157, allocations: 214.6 kB / 0.8989 GB, free: 10.98 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.6158, allocations: 43.98 kB / 0.899 GB, free: 10.94 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.0006224/0.6164, allocations: 349.6 kB / 0.8993 GB, free: 10.59 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002639/0.6167, allocations: 154.2 kB / 0.8995 GB, free: 10.44 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.6191, allocations: 1.138 MB / 0.9006 GB, free: 9.281 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.855e-05/0.6191, allocations: 11.98 kB / 0.9006 GB, free: 9.27 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6191, allocations: 0 / 0.9006 GB, free: 9.27 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.6191, allocations: 7.984 kB / 0.9006 GB, free: 9.262 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005059/0.6242, allocations: 2.518 MB / 0.903 GB, free: 6.66 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.6242, allocations: 0 / 0.903 GB, free: 6.66 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.6246, allocations: 83.89 kB / 0.9031 GB, free: 6.578 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007253/0.6253, allocations: 212.6 kB / 0.9033 GB, free: 6.367 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.6254, allocations: 23.98 kB / 0.9034 GB, free: 6.344 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/0.6266, allocations: 0.7669 MB / 0.9041 GB, free: 5.551 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.6267, allocations: 4.031 kB / 0.9041 GB, free: 5.547 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.63, allocations: 1.199 MB / 0.9053 GB, free: 4.309 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005634/0.6305, allocations: 351.1 kB / 0.9056 GB, free: 3.945 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.6307, allocations: 12 kB / 0.9056 GB, free: 3.934 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009048/0.6317, allocations: 79.84 kB / 0.9057 GB, free: 3.855 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.933e-05/0.6318, allocations: 44.5 kB / 0.9057 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.789e-05/0.6318, allocations: 27.98 kB / 0.9058 GB, free: 3.785 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001715/0.6335, allocations: 1.082 MB / 0.9068 GB, free: 2.707 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.693e-06/0.6336, allocations: 0 / 0.9068 GB, free: 2.707 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001273/0.6348, allocations: 447.3 kB / 0.9073 GB, free: 2.27 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.0008628/0.6357, allocations: 473.9 kB / 0.9077 GB, free: 1.812 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00206/0.6378, allocations: 0.8525 MB / 0.9085 GB, free: 0.9609 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6378, allocations: 4 kB / 0.9085 GB, free: 0.957 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.639, allocations: 439.6 kB / 0.909 GB, free: 0.5273 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/0.6419, allocations: 0.7456 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.003781/0.6457, allocations: 2.268 MB / 0.9119 GB, free: 13.47 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007045/0.6465, allocations: 1.169 MB / 0.913 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.6468, allocations: 115.4 kB / 0.9132 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of SimCode: time 6.41e-07/0.6468, allocations: 4 kB / 0.9132 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of Templates: time 0.04415/0.691, allocations: 34.46 MB / 0.9468 GB, free: 9.957 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)