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.004629/0.004629, allocations: 101.4 kB / 15.73 MB, free: 5.492 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.001111/0.001111, allocations: 189.2 kB / 16.67 MB, free: 5.422 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002044/0.002044, allocations: 287.9 kB / 290.8 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 0.9254/0.9254, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 103.8 kB / 0.6814 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4263/0.428, allocations: 86.98 MB / 0.7664 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06388/0.4919, allocations: 70.44 MB / 0.8352 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02395/0.5159, allocations: 18.93 MB / 0.8536 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002383/0.5183, allocations: 71.56 kB / 0.8537 GB, free: 10.09 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.5205, allocations: 0.8385 MB / 0.8545 GB, free: 9.246 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.008053/0.5285, allocations: 3.004 MB / 0.8575 GB, free: 6.23 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.004277/0.5328, allocations: 1.663 MB / 0.8591 GB, free: 4.574 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005452/0.5383, allocations: 4.054 MB / 0.863 GB, free: 0.5078 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001998/0.5403, allocations: 1.457 MB / 0.8645 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003734/0.544, allocations: 1.819 MB / 0.8662 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.5458, allocations: 1.179 MB / 0.8674 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002232/0.5461, allocations: 176 kB / 0.8676 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00263/0.5487, allocations: 1.416 MB / 0.8689 GB, free: 10.42 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003327/0.5491, allocations: 382.7 kB / 0.8693 GB, free: 10.05 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0008765/0.5499, allocations: 0.9215 MB / 0.8702 GB, free: 9.121 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003704/0.5536, allocations: 3.119 MB / 0.8733 GB, free: 5.996 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5537, allocations: 0 / 0.8733 GB, free: 5.996 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5537, allocations: 0 / 0.8733 GB, free: 5.996 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.387e-05/0.5537, allocations: 0 / 0.8733 GB, free: 5.996 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.003249/0.557, allocations: 2.034 MB / 0.8752 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.557, allocations: 12.03 kB / 0.8753 GB, free: 3.887 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/0.5592, allocations: 446.4 kB / 0.8757 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002473/0.5617, allocations: 1.543 MB / 0.8772 GB, free: 1.848 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/0.5618, allocations: 78.03 kB / 0.8773 GB, free: 1.77 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.5619, allocations: 107.9 kB / 0.8774 GB, free: 1.664 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002488/0.5644, allocations: 1.317 MB / 0.8787 GB, free: 244 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.5645, allocations: 3.938 kB / 0.8787 GB, free: 240 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.984e-05/0.5646, allocations: 44 kB / 0.8787 GB, free: 196 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.5646, allocations: 32 kB / 0.8787 GB, free: 164 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.5673, allocations: 1.093 MB / 0.8798 GB, free: 15.06 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.008806/0.5761, allocations: 7.509 MB / 0.8871 GB, free: 7.039 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003094/0.5793, allocations: 0.8062 MB / 0.8879 GB, free: 6.227 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006128/0.5799, allocations: 285.9 kB / 0.8882 GB, free: 5.945 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001167/0.5811, allocations: 1.718 MB / 0.8899 GB, free: 3.836 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.5811, allocations: 50.98 kB / 0.8899 GB, free: 3.777 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=48): time 2.605e-06/0.5811, allocations: 0 / 0.8899 GB, free: 3.777 MB / 0.6544 GB Notification: Performance of matching and sorting (n=48): time 0.004667/0.5858, allocations: 1.334 MB / 0.8912 GB, free: 2.418 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.5858, allocations: 59.84 kB / 0.8913 GB, free: 2.348 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002123/0.588, allocations: 1.545 MB / 0.8928 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.632e-05/0.588, allocations: 41.7 kB / 0.8928 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/0.5886, allocations: 0.6691 MB / 0.8935 GB, free: 72 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.5887, allocations: 169.7 kB / 0.8936 GB, free: 15.9 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002749/0.589, allocations: 182.4 kB / 0.8938 GB, free: 15.71 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.5891, allocations: 330 kB / 0.8941 GB, free: 15.39 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009513/0.5901, allocations: 365.8 kB / 0.8945 GB, free: 15.03 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.5913, allocations: 0.6546 MB / 0.8951 GB, free: 14.25 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001808/0.5931, allocations: 0.8867 MB / 0.896 GB, free: 13.26 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.5931, allocations: 7.938 kB / 0.896 GB, free: 13.25 MB / 0.67 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002933/0.5961, allocations: 1.186 MB / 0.8971 GB, free: 12.06 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.5961, allocations: 8 kB / 0.8972 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5961, allocations: 12.03 kB / 0.8972 GB, free: 12.04 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008226/0.5969, allocations: 220.6 kB / 0.8974 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007503/0.5977, allocations: 195.7 kB / 0.8976 GB, free: 11.63 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000836/0.5985, allocations: 0.7201 MB / 0.8983 GB, free: 10.88 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.5999, allocations: 206.6 kB / 0.8985 GB, free: 10.68 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.6001, allocations: 51.97 kB / 0.8985 GB, free: 10.63 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.0005382/0.6006, allocations: 355.8 kB / 0.8989 GB, free: 10.27 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.6008, allocations: 142.3 kB / 0.899 GB, free: 10.13 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.6032, allocations: 1.144 MB / 0.9001 GB, free: 8.969 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.6032, allocations: 15.98 kB / 0.9001 GB, free: 8.953 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.6032, allocations: 0 / 0.9001 GB, free: 8.953 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.6033, allocations: 0 / 0.9001 GB, free: 8.953 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00502/0.6083, allocations: 2.514 MB / 0.9026 GB, free: 6.355 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.6083, allocations: 4 kB / 0.9026 GB, free: 6.352 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/0.6087, allocations: 87.81 kB / 0.9027 GB, free: 6.266 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007201/0.6094, allocations: 212.8 kB / 0.9029 GB, free: 6.055 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.6094, allocations: 15.94 kB / 0.9029 GB, free: 6.039 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.6107, allocations: 0.7786 MB / 0.9036 GB, free: 5.234 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6107, allocations: 0 / 0.9036 GB, free: 5.234 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.6141, allocations: 1.211 MB / 0.9048 GB, free: 3.984 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005019/0.6146, allocations: 350.9 kB / 0.9052 GB, free: 3.621 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.6148, allocations: 12 kB / 0.9052 GB, free: 3.609 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009076/0.6157, allocations: 71.91 kB / 0.9052 GB, free: 3.539 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.442e-05/0.6158, allocations: 40.52 kB / 0.9053 GB, free: 3.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.6158, allocations: 23.98 kB / 0.9053 GB, free: 3.477 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001686/0.6175, allocations: 1.086 MB / 0.9064 GB, free: 2.395 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6175, allocations: 0 / 0.9064 GB, free: 2.395 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001202/0.6188, allocations: 447.4 kB / 0.9068 GB, free: 1.957 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.0009653/0.6197, allocations: 478.9 kB / 0.9072 GB, free: 1.496 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00218/0.6219, allocations: 0.8479 MB / 0.9081 GB, free: 0.6484 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.6219, allocations: 1 kB / 0.9081 GB, free: 0.6484 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.6233, allocations: 447.3 kB / 0.9085 GB, free: 216 kB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003098/0.6264, allocations: 0.7304 MB / 0.9092 GB, free: 15.49 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.6306, allocations: 2.245 MB / 0.9114 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008378/0.6315, allocations: 1.172 MB / 0.9126 GB, free: 12 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001043/0.6325, allocations: 279.9 kB / 0.9128 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002737/0.6328, allocations: 111.4 kB / 0.9129 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of SimCode: time 4.1e-07/0.6328, allocations: 0 / 0.9129 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of Templates: time 0.0489/0.6817, allocations: 31.77 MB / 0.9439 GB, free: 12.26 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)