Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001128, allocations: 100.4 kB / 16.29 MB, free: 6.012 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.001148/0.001148, allocations: 180.7 kB / 17.22 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.726/1.726, allocations: 292.3 MB / 0.5495 GB, free: 17.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 67.89 kB / 0.6722 GB, free: 6.484 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2086, allocations: 114.6 MB / 0.7841 GB, free: 3.809 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow): time 0.4027/0.6113, allocations: 61.24 MB / 0.8439 GB, free: 8.988 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01702/0.6283, allocations: 11.9 MB / 0.8555 GB, free: 496 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002974/0.6314, allocations: 59.25 kB / 0.8556 GB, free: 472 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.6336, allocations: 0.6845 MB / 0.8562 GB, free: 20 kB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006512/0.6402, allocations: 1.952 MB / 0.8581 GB, free: 14.85 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.003773/0.644, allocations: 1.222 MB / 0.8593 GB, free: 14.18 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.005231/0.6492, allocations: 3.08 MB / 0.8623 GB, free: 12.67 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002179/0.6514, allocations: 1.133 MB / 0.8634 GB, free: 12.16 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003723/0.6552, allocations: 1.33 MB / 0.8647 GB, free: 11.5 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/0.6571, allocations: 0.911 MB / 0.8656 GB, free: 11.08 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002647/0.6574, allocations: 120.8 kB / 0.8657 GB, free: 11.08 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003609/0.661, allocations: 1.449 MB / 0.8672 GB, free: 10.59 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000404/0.6614, allocations: 295.9 kB / 0.8674 GB, free: 10.39 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.6626, allocations: 0.7073 MB / 0.8681 GB, free: 9.949 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.004215/0.6668, allocations: 2.329 MB / 0.8704 GB, free: 8.754 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.6668, allocations: 4 kB / 0.8704 GB, free: 8.75 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6668, allocations: 1.125 kB / 0.8704 GB, free: 8.75 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.425e-05/0.6668, allocations: 0.75 kB / 0.8704 GB, free: 8.75 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.003511/0.6704, allocations: 1.738 MB / 0.8721 GB, free: 7.41 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.6704, allocations: 10.03 kB / 0.8721 GB, free: 7.41 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002365/0.6728, allocations: 457.3 kB / 0.8726 GB, free: 7.203 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.6749, allocations: 1.119 MB / 0.8736 GB, free: 6.289 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003224/0.6753, allocations: 118.8 kB / 0.8738 GB, free: 6.242 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.6754, allocations: 83.69 kB / 0.8738 GB, free: 6.215 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.6776, allocations: 1.005 MB / 0.8748 GB, free: 5.59 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.6776, allocations: 5.188 kB / 0.8748 GB, free: 5.586 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.999e-05/0.6777, allocations: 31.12 kB / 0.8749 GB, free: 5.562 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.6777, allocations: 18.59 kB / 0.8749 GB, free: 5.562 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002535/0.6802, allocations: 0.9558 MB / 0.8758 GB, free: 5.094 MB / 0.67 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.00632/0.6866, allocations: 4.668 MB / 0.8804 GB, free: 0.9805 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003824/0.6904, allocations: 1.004 MB / 0.8813 GB, free: 488 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.6914, allocations: 415.5 kB / 0.8817 GB, free: 284 kB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009767/0.6924, allocations: 1.023 MB / 0.8827 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.6925, allocations: 42.56 kB / 0.8828 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=53): time 2.505e-06/0.6925, allocations: 0 / 0.8828 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of matching and sorting (n=53): time 0.009199/0.7017, allocations: 2.231 MB / 0.885 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.7018, allocations: 65.56 kB / 0.885 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.7033, allocations: 0.9405 MB / 0.8859 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.7034, allocations: 38.2 kB / 0.886 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003923/0.7038, allocations: 0.5086 MB / 0.8865 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.704, allocations: 176.8 kB / 0.8866 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.7042, allocations: 128.8 kB / 0.8868 GB, free: 12.61 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.7044, allocations: 335.5 kB / 0.8871 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.7054, allocations: 359.4 kB / 0.8874 GB, free: 12.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.7066, allocations: 0.5156 MB / 0.8879 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.7085, allocations: 0.7705 MB / 0.8887 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.7086, allocations: 1.438 kB / 0.8887 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002966/0.7115, allocations: 1.072 MB / 0.8897 GB, free: 10.74 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.7116, allocations: 9.922 kB / 0.8897 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.7116, allocations: 4.938 kB / 0.8897 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.7128, allocations: 314.7 kB / 0.89 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006398/0.7135, allocations: 142.1 kB / 0.8902 GB, free: 10.54 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.7149, allocations: 0.9014 MB / 0.8911 GB, free: 9.828 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.7161, allocations: 125.3 kB / 0.8912 GB, free: 9.758 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.945e-05/0.7162, allocations: 31.23 kB / 0.8912 GB, free: 9.746 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001371/0.7176, allocations: 0.5571 MB / 0.8918 GB, free: 9.418 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001138/0.7187, allocations: 0.5186 MB / 0.8923 GB, free: 9.047 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001968/0.7207, allocations: 0.7551 MB / 0.893 GB, free: 8.613 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.526e-06/0.7207, allocations: 0 / 0.893 GB, free: 8.613 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002872/0.7236, allocations: 1.067 MB / 0.894 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.7236, allocations: 6.969 kB / 0.894 GB, free: 8.074 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.7236, allocations: 5.875 kB / 0.8941 GB, free: 8.07 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.7247, allocations: 301.3 kB / 0.8943 GB, free: 7.93 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006087/0.7253, allocations: 133 kB / 0.8945 GB, free: 7.891 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/0.7267, allocations: 0.9066 MB / 0.8954 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.7279, allocations: 117.2 kB / 0.8955 GB, free: 7.109 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.728, allocations: 33.58 kB / 0.8955 GB, free: 7.098 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (55): * Single equations (assignments): 54 * 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002785/0.7283, allocations: 211.1 kB / 0.8957 GB, free: 6.895 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003538/0.7287, allocations: 105.6 kB / 0.8958 GB, free: 6.84 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004368/0.733, allocations: 1.329 MB / 0.8971 GB, free: 6.098 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.7331, allocations: 15.44 kB / 0.8971 GB, free: 6.086 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.7331, allocations: 0 / 0.8971 GB, free: 6.086 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7331, allocations: 7.922 kB / 0.8971 GB, free: 6.078 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005875/0.739, allocations: 2.418 MB / 0.8995 GB, free: 3.586 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.739, allocations: 4 kB / 0.8995 GB, free: 3.582 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/0.7396, allocations: 108 kB / 0.8996 GB, free: 3.477 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009846/0.7405, allocations: 301.9 kB / 0.8999 GB, free: 3.18 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.608e-05/0.7406, allocations: 15.98 kB / 0.8999 GB, free: 3.164 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/0.742, allocations: 0.9464 MB / 0.9008 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.7421, allocations: 0 / 0.9008 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004049/0.7461, allocations: 1.335 MB / 0.9021 GB, free: 0.8125 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006008/0.7467, allocations: 287.4 kB / 0.9024 GB, free: 0.5117 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.747, allocations: 23.97 kB / 0.9024 GB, free: 500 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009252/0.7479, allocations: 75.91 kB / 0.9025 GB, free: 424 kB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.748, allocations: 32.39 kB / 0.9025 GB, free: 392 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.55e-05/0.7481, allocations: 23.98 kB / 0.9025 GB, free: 368 kB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001297/0.7494, allocations: 0.6637 MB / 0.9032 GB, free: 15.69 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7494, allocations: 3.938 kB / 0.9032 GB, free: 15.68 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002277/0.7517, allocations: 0.5769 MB / 0.9038 GB, free: 15.11 MB / 0.7012 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 (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001117/0.7528, allocations: 394.5 kB / 0.9041 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003896/0.7567, allocations: 1.319 MB / 0.9054 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.7568, allocations: 7.938 kB / 0.9054 GB, free: 13.4 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.758, allocations: 456.8 kB / 0.9059 GB, free: 12.95 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.7607, allocations: 0.5001 MB / 0.9064 GB, free: 12.49 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.765, allocations: 1.876 MB / 0.9082 GB, free: 10.56 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000804/0.7658, allocations: 1.066 MB / 0.9092 GB, free: 9.465 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001023/0.7668, allocations: 234.6 kB / 0.9094 GB, free: 9.246 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.7671, allocations: 83.41 kB / 0.9095 GB, free: 9.164 MB / 0.7012 GB Notification: Performance of SimCode: time 1.082e-06/0.7671, allocations: 0 / 0.9095 GB, free: 9.164 MB / 0.7012 GB Notification: Performance of Templates: time 0.04307/0.8102, allocations: 24.95 MB / 0.9339 GB, free: 0.6133 MB / 0.7169 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Validation.Carnot_TCon_reverseFlow.pipe 2>&1)